mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix fireservicerota unload (#137629)
This commit is contained in:
parent
b6c1c10035
commit
0e443bf748
@ -45,7 +45,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
"""Unload FireServiceRota config entry."""
|
"""Unload FireServiceRota config entry."""
|
||||||
|
|
||||||
await hass.async_add_executor_job(
|
await hass.async_add_executor_job(
|
||||||
hass.data[DOMAIN][entry.entry_id].websocket.stop_listener
|
hass.data[DOMAIN][entry.entry_id][DATA_CLIENT].websocket.stop_listener
|
||||||
)
|
)
|
||||||
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||||
if unload_ok:
|
if unload_ok:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user