mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Fix memory leak in heos (#49461)
This commit is contained in:
@@ -82,7 +82,9 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
|||||||
async def disconnect_controller(event):
|
async def disconnect_controller(event):
|
||||||
await controller.disconnect()
|
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
|
# Get players and sources
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user