mirror of
https://github.com/home-assistant/core.git
synced 2025-05-28 09:47:09 +00:00
Fix memory leak in heos (#49461)
This commit is contained in:
parent
2279b5593d
commit
c9fbdfbbbe
@ -82,7 +82,9 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
||||
async def disconnect_controller(event):
|
||||
await controller.disconnect()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, disconnect_controller)
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, disconnect_controller)
|
||||
)
|
||||
|
||||
# Get players and sources
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user