mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Fix memory leak in logi_circle (#49458)
This commit is contained in:
@@ -220,7 +220,9 @@ async def async_setup_entry(hass, entry):
|
|||||||
"""Close Logi Circle aiohttp session."""
|
"""Close Logi Circle aiohttp session."""
|
||||||
await logi_circle.auth_provider.close()
|
await logi_circle.auth_provider.close()
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, shut_down)
|
entry.async_on_unload(
|
||||||
|
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, shut_down)
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user