mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix check to avoid crash (#16371)
Signed-off-by: Markus Michels <markus7017@gmail.com>
This commit is contained in:
parent
7c05e8f585
commit
e2313e9801
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user