mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Return false when mappedDevice is falsy (#2383)
This commit is contained in:
committed by
Koen Kanters
parent
c5bd3a2450
commit
2df1acf532
@@ -97,7 +97,7 @@ class DeviceReport extends BaseExtension {
|
||||
}
|
||||
|
||||
shouldSetupReporting(mappedDevice, device, messageType) {
|
||||
if (!device) return false;
|
||||
if (!device || !mappedDevice) return false;
|
||||
|
||||
// Handle messages of type endDeviceAnnce and devIncoming.
|
||||
// This message is typically send when a device comes online after being powered off
|
||||
|
||||
Reference in New Issue
Block a user