Fix zwave_js device re-interview (#78046)
* Handle stale node and entity info on re-interview * Add test * Unsubscribe on config entry unload
This commit is contained in:
parent
be064bfeef
commit
f11b51e12b
4 changed files with 103 additions and 9 deletions
|
@ -189,6 +189,14 @@ class ZWaveNodeFirmwareUpdate(UpdateEntity):
|
|||
)
|
||||
)
|
||||
|
||||
self.async_on_remove(
|
||||
async_dispatcher_connect(
|
||||
self.hass,
|
||||
f"{DOMAIN}_{self._base_unique_id}_remove_entity_on_ready_node",
|
||||
self.async_remove,
|
||||
)
|
||||
)
|
||||
|
||||
self.async_on_remove(async_at_start(self.hass, self._async_update))
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue