mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Fix device removal (#4354)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
@@ -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