mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Fix memory leak in insteon (#49466)
This commit is contained in:
parent
1193c5360d
commit
30c99ce954
@ -96,7 +96,9 @@ async def async_setup_entry(hass, entry):
|
||||
_LOGGER.error("Could not connect to Insteon modem")
|
||||
raise ConfigEntryNotReady from exception
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, close_insteon_connection)
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, close_insteon_connection)
|
||||
)
|
||||
|
||||
await devices.async_load(
|
||||
workdir=hass.config.config_dir, id_devices=0, load_modem_aldb=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user