mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 23:00:55 +00:00
Fix Cannot set properties of undefined (setting 'installed_version'). https://github.com/Koenkk/zigbee2mqtt/issues/14917
This commit is contained in:
@@ -1461,7 +1461,7 @@ export default class HomeAssistant extends Extension {
|
||||
}
|
||||
}
|
||||
|
||||
if (entity.isDevice() && entity.definition.ota) {
|
||||
if (entity.isDevice() && entity.definition?.ota && message.hasOwnProperty('update')) {
|
||||
message['update']['installed_version'] = entity.zh.softwareBuildID;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user