Skip to content

Commit 85c9a02

Browse files
committed
Fixed status display
1 parent 24b22cc commit 85c9a02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduino-cloud.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = function (RED) {
3939
}
4040
);
4141
const s = getStatus(property.last_value);
42-
if (s)
42+
if (s != undefined)
4343
this.status({ fill: "grey", shape: "dot", text: s });
4444
else
4545
this.status({});
@@ -71,7 +71,7 @@ module.exports = function (RED) {
7171
await connectionManager.connect(connectionConfig);
7272
this.arduinoRestClient.setProperty(this.thing, this.propertyId, msg.payload);
7373
const s = getStatus(msg.payload);
74-
if (s)
74+
if (s != undefined)
7575
this.status({ fill: "grey", shape: "dot", text: s });
7676
else
7777
this.status({});
@@ -176,7 +176,7 @@ module.exports = function (RED) {
176176
}
177177
);
178178
const s = getStatus(property.last_value);
179-
if (s)
179+
if (s != undefined)
180180
this.status({ fill: "grey", shape: "dot", text: s });
181181
else
182182
this.status({});
@@ -213,7 +213,7 @@ module.exports = function (RED) {
213213
}
214214
);
215215
const s = getStatus(property.last_value);
216-
if (s)
216+
if (s != undefined)
217217
this.status({ fill: "grey", shape: "dot", text: s });
218218
else
219219
this.status({});

0 commit comments

Comments
 (0)