Fix memory leak in unifi on reload ()

pull/49494/head
J. Nick Koston 2021-04-20 06:13:07 -10:00 committed by GitHub
parent 052e935c2b
commit 7db5d50ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
homeassistant/components/unifi

View File

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