mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Use hasOwnProperty for linkquality check. https://stackoverflow.com/questions/13632999/if-key-in-object-or-ifobject-hasownpropertykey
This commit is contained in:
1 parent
7502ba5312
commit
b82f0e46aa
1 file changed
+1
-1
+1
-1
@@ -319,7 +319,7 @@ class Controller {
|
||||
});
|
||||
|
||||
// Add device linkquality.
|
||||
if ('linkquality' in message) {
|
||||
if (message.hasOwnProperty('linkquality')) {
|
||||
payload.linkquality = message.linkquality;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user