mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix memory leak in logi_circle (#49458)
This commit is contained in:
parent
3cbfa36397
commit
11281e1cdb
@ -220,7 +220,9 @@ async def async_setup_entry(hass, entry):
|
||||
"""Close Logi Circle aiohttp session."""
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user