mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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):
|
async def _close(event):
|
||||||
await tibber_connection.rt_disconnect()
|
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:
|
try:
|
||||||
await tibber_connection.update_info()
|
await tibber_connection.update_info()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user