mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 14:22:38 +00:00
Clear device state when device leaves network. https://github.com/Koenkk/zigbee2mqtt/issues/4485
This commit is contained in:
1 parent
2ee3b5f12b
commit
bd7d0be07a
1 file changed
+1
@@ -254,6 +254,7 @@ class Controller {
|
||||
/* istanbul ignore else */
|
||||
if (type === 'deviceLeave') {
|
||||
logger.warn(`Device '${name || data.ieeeAddr}' left the network`);
|
||||
this.state.remove(data.ieeeAddr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user