Skip to content

Commit

Permalink
1.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Mar 14, 2020
1 parent ede6d64 commit eb1a234
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ This adapter uses the node-red server from https://github.com/node-red/node-red

## Changelog

### 1.16.1 (2020-03-12)
### 1.16.3 (2020-03-14)
* (Apollon77) fix potential crash case in inout node

### 1.16.2 (2020-03-12)
* (Apollon77) update deps, node-red to 1.0.4
* (Apollon77) update number of listeners to max 1000 before warning is displayed

Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
{
"common": {
"name": "node-red",
"version": "1.16.2",
"version": "1.16.3",
"title": "node-red",
"news": {
"1.16.3": {
"en": "fix potential crash case of input node",
"de": "Behebung eines möglichen Absturzfalls des Eingabeknotens",
"ru": "исправить возможный сбой входного узла",
"pt": "corrigir caso de falha potencial do nó de entrada",
"nl": "potentiële crashgeval van invoerknooppunt repareren",
"fr": "correction d'un éventuel crash du nœud d'entrée",
"it": "risolve il potenziale caso di crash del nodo di input",
"es": "Arreglar caso de bloqueo potencial del nodo de entrada",
"pl": "naprawiono potencjalną awarię węzła wejściowego",
"zh-cn": "修复输入节点可能崩溃的情况"
},
"1.16.2": {
"en": "update dependencies, updated Node-Red to 1.0.4",
"de": "Abhängigkeiten aktualisieren, Node-Red auf 1.0.4 aktualisiert",
Expand Down
4 changes: 2 additions & 2 deletions nodes/ioBroker.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module.exports = function(RED) {
});
}

function assembleCommon(node, msg) {
function assembleCommon(node, msg, id) {
msg = msg || {};
const common = {
read: true,
Expand Down Expand Up @@ -377,7 +377,7 @@ module.exports = function(RED) {
if (node.autoCreate && !node.idChecked) {
id = id.replace(/\//g, '.');
if (!id.includes('*') && isValidID.test(id)) {
return checkState(node, id, assembleCommon(node, msg), {val: msg.payload, ack: node.ack}, isOk => {
return checkState(node, id, assembleCommon(node, msg, id), {val: msg.payload, ack: node.ack}, isOk => {
if (isOk) {
node.status({
fill: 'green',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iobroker.node-red",
"description": "This adapter uses node-red as a service of ioBroker. No additional node-red instance required.",
"version": "1.16.2",
"version": "1.16.3",
"author": {
"name": "bluefox",
"email": "[email protected]"
Expand Down

0 comments on commit eb1a234

Please sign in to comment.