mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix memory leak in legacy nest (#49469)
This commit is contained in:
parent
d858d2ff25
commit
7791670607
@ -249,7 +249,9 @@ async def async_setup_legacy_entry(hass, entry):
|
||||
"""Stop Nest update event listener."""
|
||||
nest.update_event.set()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, shut_down)
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, shut_down)
|
||||
)
|
||||
|
||||
_LOGGER.debug("async_setup_nest is done")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user