mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Fix device removal (#4354)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
1 parent
508ee10f0c
commit
59812f1ef6
1 file changed
+1
-1
@@ -2134,7 +2134,7 @@ class HomeAssistant extends Extension {
|
||||
}
|
||||
|
||||
getConfigs(resolvedEntity) {
|
||||
if (!resolvedEntity || !resolvedEntity.definition) return [];
|
||||
if (!resolvedEntity || !resolvedEntity.definition || !mapping[resolvedEntity.definition.model]) return [];
|
||||
|
||||
let configs = mapping[resolvedEntity.definition.model].slice();
|
||||
configs.push(cfg.sensor_linkquality);
|
||||
|
||||
Reference in new issue
Block a user