mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-03 02:21:38 +00:00
Fix exception in Home Assistant extension when device not mapped. #3302
This commit is contained in:
@@ -1670,7 +1670,7 @@ class HomeAssistant extends Extension {
|
||||
},
|
||||
{
|
||||
property: 'water_leak',
|
||||
condition: data.entity.device && data.entity.definition &&
|
||||
condition: data.entity.device && data.entity.definition && mapping[data.entity.definition.model] &&
|
||||
mapping[data.entity.definition.model].includes(cfg.binary_sensor_water_leak),
|
||||
value: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user