mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix memory leak in tibber (#49465)
This commit is contained in:
parent
786f3163ac
commit
1193c5360d
@ -60,7 +60,7 @@ async def async_setup_entry(hass, entry):
|
||||
async def _close(event):
|
||||
await tibber_connection.rt_disconnect()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _close)
|
||||
entry.async_on_unload(hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _close))
|
||||
|
||||
try:
|
||||
await tibber_connection.update_info()
|
||||
|
Loading…
x
Reference in New Issue
Block a user