mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 00:55:26 +02:00
Fix memory leak in tibber (#49465)
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user