syntex-automation
Advanced tools
Comparing version 1.2.1-b26 to 1.2.1-b27
{ | ||
"name": "syntex-automation", | ||
"version": "1.2.1-b26", | ||
"version": "1.2.1-b27", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -46,6 +46,3 @@ module.exports = class Automation | ||
if(!this._isLocked(automation)) | ||
{ | ||
this.checkTrigger(automation, { name : ('0' + new Date().getHours()).slice(-2) + ':' + ('0' + new Date().getMinutes()).slice(-2) }); | ||
} | ||
this.checkTrigger(automation, { name : ('0' + new Date().getHours()).slice(-2) + ':' + ('0' + new Date().getMinutes()).slice(-2) }); | ||
} | ||
@@ -179,6 +176,3 @@ } | ||
if(!this._isLocked(automation, service)) | ||
{ | ||
this.checkTrigger(automation, service, state); | ||
} | ||
this.checkTrigger(automation, service, state); | ||
} | ||
@@ -288,10 +282,13 @@ } | ||
{ | ||
if(automation.options == null | ||
|| automation.options.timeLock == null | ||
|| this.timeLock[automation.id] == null | ||
|| new Date().getTime() >= this.timeLock[automation.id]) | ||
if(!this._isLocked(automation)) | ||
{ | ||
this.logger.debug('Automation [' + automation.name + '] %trigger_activated%'); | ||
if(automation.options == null | ||
|| automation.options.timeLock == null | ||
|| this.timeLock[automation.id] == null | ||
|| new Date().getTime() >= this.timeLock[automation.id]) | ||
{ | ||
this.logger.debug('Automation [' + automation.name + '] %trigger_activated%'); | ||
this.executeResult(automation, service); | ||
this.executeResult(automation, service); | ||
} | ||
} | ||
@@ -298,0 +295,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26458
787