Skip to content

Commit

Permalink
* (Apollon77) Fix automatic start of Rules scripts when starting adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Mar 15, 2022
1 parent d57f81e commit 992e9d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ And then call `npm run build`.
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->

### __WORK IN PROGRESS__
* (Apollon77) Fix automatic start of Rules scripts when starting adapter

### 5.4.1 (2022-03-15)
* (Apollon77) Fix blockly subscribes broken in 5.4.0

Expand Down
2 changes: 1 addition & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"language": "javascript",
"views": {
"javascript": {
"map": "function(doc) { if (doc.type === 'script' && doc.common.engineType.match(/^[jJ]ava[sS]cript|^[cC]offee[sS]cript|^[tT]ype[sS]cript|^Blockly/)) emit(doc.common.name, doc); }"
"map": "function(doc) { if (doc.type === 'script' && doc.common.engineType.match(/^[jJ]ava[sS]cript|^[cC]offee[sS]cript|^[tT]ype[sS]cript|^Blockly|^Rules/)) emit(doc.common.name, doc); }"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ function createActiveObject(id, enabled, cb) {
if (state && state.val !== enabled) {
const intermediateStateValue = prepareStateObject(idActive, !!enabled, true);
adapter.setForeignState(idActive, !!enabled, true, () => {
if (!!enabled) {
if (enabled) {
context.interimStateValues[id] = intermediateStateValue;
}
cb && cb();
Expand Down

0 comments on commit 992e9d3

Please sign in to comment.