mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Fix check to avoid crash (#16371)
Signed-off-by: Markus Michels <markus7017@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
17f5a069a7
commit
b729f443ff
@ -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