mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Fix memory leak in fritzbox (#49462)
This commit is contained in:
@@ -96,7 +96,9 @@ async def async_setup_entry(hass, entry):
|
|||||||
"""Close connections to this fritzbox."""
|
"""Close connections to this fritzbox."""
|
||||||
fritz.logout()
|
fritz.logout()
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, logout_fritzbox)
|
entry.async_on_unload(
|
||||||
|
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, logout_fritzbox)
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user