Disconnect wiffi entity signals on unload (#183280)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Franck Nijhof
2026-09-27 13:12:37 +02:00
committed by GitHub
co-authored by Claude
parent fb73ce9a23
commit 1908715739
2 changed files with 6 additions and 2 deletions
@@ -33,7 +33,9 @@ async def async_setup_entry(
async_add_entities(entities)
async_dispatcher_connect(hass, CREATE_ENTITY_SIGNAL, _create_entity)
config_entry.async_on_unload(
async_dispatcher_connect(hass, CREATE_ENTITY_SIGNAL, _create_entity)
)
class BoolEntity(WiffiEntity, BinarySensorEntity):
+3 -1
View File
@@ -63,7 +63,9 @@ async def async_setup_entry(
async_add_entities(entities)
async_dispatcher_connect(hass, CREATE_ENTITY_SIGNAL, _create_entity)
config_entry.async_on_unload(
async_dispatcher_connect(hass, CREATE_ENTITY_SIGNAL, _create_entity)
)
class NumberEntity(WiffiEntity, SensorEntity):