mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-23 20:11:17 +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
-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