Fix memory leak in fritzbox (#49462)
parent
c9fbdfbbbe
commit
052e935c2b
|
@ -96,7 +96,9 @@ async def async_setup_entry(hass, entry):
|
|||
"""Close connections to this fritzbox."""
|
||||
fritz.logout()
|
||||
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, logout_fritzbox)
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue