Support reloading Tasmota config entries (#42097)
This commit is contained in:
parent
3661035397
commit
de35d58fd4
15 changed files with 179 additions and 75 deletions
|
@ -153,6 +153,12 @@ class TasmotaDiscoveryUpdate(TasmotaEntity):
|
|||
)
|
||||
)
|
||||
|
||||
@callback
|
||||
def add_to_platform_abort(self) -> None:
|
||||
"""Abort adding an entity to a platform."""
|
||||
clear_discovery_hash(self.hass, self._discovery_hash)
|
||||
super().add_to_platform_abort()
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
"""Stop listening to signal and cleanup discovery data.."""
|
||||
if not self._removed_from_hass:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue