mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix memory leak in huawei_lte (#49470)
This commit is contained in:
parent
7791670607
commit
8537076917
@ -445,7 +445,9 @@ async def async_setup_entry(hass: HomeAssistantType, config_entry: ConfigEntry)
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Clean up at end
|
# Clean up at end
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, router.cleanup)
|
config_entry.async_on_unload(
|
||||||
|
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, router.cleanup)
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user