Fix memory leak in hangouts (#49471)

pull/49494/head
J. Nick Koston 2021-04-20 06:14:48 -10:00 committed by GitHub
parent 8537076917
commit 76b59a3983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ async def async_setup_entry(hass, config):
bot.async_update_conversation_commands,
)
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, bot.async_handle_hass_stop)
config.async_on_unload(
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, bot.async_handle_hass_stop)
)
await bot.async_connect()