diff --git a/lib/extension/otaUpdate.js b/lib/extension/otaUpdate.js index 3c1913c08..33e4e2daa 100644 --- a/lib/extension/otaUpdate.js +++ b/lib/extension/otaUpdate.js @@ -20,7 +20,7 @@ class OTAUpdate extends BaseExtension { async onZigbeeEvent(type, data, mappedDevice, settingsDevice) { if (data.type !== 'commandQueryNextImageRequest') return; - const supportsOTA = mappedDevice.hasOwnProperty('ota'); + const supportsOTA = mappedDevice && mappedDevice.hasOwnProperty('ota'); if (supportsOTA) { // When a device does a next image request, it will usually do it a few times after each other // with only 10 - 60 seconds inbetween. It doesn' make sense to check for a new update