mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Unsubscribe ozw stop listener on entry unload (#43900)
This commit is contained in:
parent
8d33c2092f
commit
5742db6308
@ -279,7 +279,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
except asyncio.CancelledError:
|
||||
pass
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, async_stop_mqtt_client)
|
||||
ozw_data[DATA_UNSUBSCRIBE].append(
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, async_stop_mqtt_client
|
||||
)
|
||||
)
|
||||
ozw_data[DATA_STOP_MQTT_CLIENT] = async_stop_mqtt_client
|
||||
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user