fix(ignore): Fix OTA sensor discoverd while device doesn't support it https://github.com/Koenkk/zigbee2mqtt/issues/20131

This commit is contained in:
koenkk
2023-12-11 20:10:08 +01:00
parent 48347a51dc
commit abde909b71
+1 -1
View File
@@ -1208,7 +1208,7 @@ export default class HomeAssistant extends Extension {
configs.push(config);
}
if (isDevice && entity.definition.hasOwnProperty('ota')) {
if (isDevice && entity.definition.ota) {
const updateStateSensor: DiscoveryEntry = {
type: 'sensor',
object_id: 'update_state',