]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix check to avoid crash (#16371)
authorMarkus Michels <markus7017@gmail.com>
Mon, 5 Feb 2024 18:35:30 +0000 (19:35 +0100)
committerGitHub <noreply@github.com>
Mon, 5 Feb 2024 18:35:30 +0000 (19:35 +0100)
Signed-off-by: Markus Michels <markus7017@gmail.com>
bundles/org.openhab.binding.shelly/src/main/resources/scripts/oh-blu-scanner.js

index 005f85860d28241370d15be1729f64adc8b84920..b4f29469c5a840882a65d95f3d6cc180c82bd068 100644 (file)
@@ -94,7 +94,7 @@ let BTHomeDecoder = {
     let _value;
     while (buffer.length > 0) {
       _bth = BTH[buffer.at(0)];
-      if (_bth === "undefined") {
+      if (typeof _bth === "undefined") {
         console.log("BTH: unknown type");
         break;
       }