Fix memory leak in unifi on reload (#49456)

This commit is contained in:
J. Nick Koston
2021-04-20 06:13:07 -10:00
committed by GitHub
parent 052e935c2b
commit 7db5d50ce4

View File

@@ -44,7 +44,9 @@ async def async_setup_entry(hass, config_entry):
hass.data[UNIFI_DOMAIN][config_entry.entry_id] = controller
config_entry.async_on_unload(
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, controller.shutdown)
)
LOGGER.debug("UniFi config options %s", config_entry.options)