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