mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Fix memory leak in vera (#49459)
This commit is contained in:
@@ -155,7 +155,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||
controller.stop()
|
||||
|
||||
await hass.async_add_executor_job(controller.start)
|
||||
config_entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, stop_subscription)
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user