syntex-automation
Advanced tools
Comparing version 1.2.1-b27 to 1.2.1-b28
{ | ||
"name": "syntex-automation", | ||
"version": "1.2.1-b27", | ||
"version": "1.2.1-b28", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -163,29 +163,3 @@ module.exports = class Automation | ||
{ | ||
return new Promise((resolve) => { | ||
if(this.ready) | ||
{ | ||
var promiseArray = []; | ||
for(const automation of this.automation) | ||
{ | ||
if(automation.active && this._includesBlock(this._getBlocks(automation.id), service)) | ||
{ | ||
promiseArray.push(this._checkLock(automation, service, state)); | ||
this.checkTrigger(automation, service, state); | ||
} | ||
} | ||
Promise.all(promiseArray).then((result) => { | ||
if(result.includes(true)) | ||
{ | ||
this.files.writeFile('automation/automation-lock.json', { timeLock : this.timeLock, stateLock : this.stateLock }); | ||
} | ||
}); | ||
} | ||
resolve(); | ||
}); | ||
this.EventManager.setOutputStream('runAutomation', { sender : this }, { service : { id : service.id, letters : service.letters, name : service.name }, state }); | ||
} | ||
@@ -192,0 +166,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
25967
767