mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-20 02:21:20 +00:00
Fix devices not discovered in Home Assistant when repaired. https://github.com/home-assistant/core/issues/35684
This commit is contained in:
@@ -1670,6 +1670,7 @@ class HomeAssistant extends Extension {
|
||||
}
|
||||
|
||||
onDeviceRemoved(device) {
|
||||
delete this.discovered[device.ieeeAddr];
|
||||
const definition = zigbeeHerdsmanConverters.findByDevice(device);
|
||||
if (definition) {
|
||||
logger.info(`Clearing Home Assistant discovery topic for '${device.ieeeAddr}'`);
|
||||
|
||||
Reference in New Issue
Block a user