Skip to content

Commit 970b4d3

Browse files
authored
Fix check to avoid crash (openhab#16371)
Signed-off-by: Markus Michels <[email protected]>
1 parent 3c53e1f commit 970b4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.openhab.binding.shelly/src/main/resources/scripts/oh-blu-scanner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ let BTHomeDecoder = {
9494
let _value;
9595
while (buffer.length > 0) {
9696
_bth = BTH[buffer.at(0)];
97-
if (_bth === "undefined") {
97+
if (typeof _bth === "undefined") {
9898
console.log("BTH: unknown type");
9999
break;
100100
}

0 commit comments

Comments
 (0)