mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix memory leak in wemo on reload (#49457)
This commit is contained in:
parent
ff367cfcb6
commit
fa05e5a8a0
@ -109,7 +109,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||||||
await hass.async_add_executor_job(registry.stop)
|
await hass.async_add_executor_job(registry.stop)
|
||||||
wemo_discovery.async_stop_discovery()
|
wemo_discovery.async_stop_discovery()
|
||||||
|
|
||||||
|
entry.async_on_unload(
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, async_stop_wemo)
|
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, async_stop_wemo)
|
||||||
|
)
|
||||||
|
|
||||||
static_conf = config.get(CONF_STATIC, [])
|
static_conf = config.get(CONF_STATIC, [])
|
||||||
if static_conf:
|
if static_conf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user