Skip to content

Commit 243569f

Browse files
authored
Add back missing controller cleanup to Govee Light Local (home-assistant#151541)
1 parent 4b7817f commit 243569f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

homeassistant/components/govee_light_local/config_flow.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,9 @@ async def _async_discover(hass: HomeAssistant, adapter_ip: IPv4Address) -> bool:
5252
_LOGGER.debug("No devices found with IP %s", adapter_ip)
5353

5454
devices_count = len(controller.devices)
55-
cleanup_complete_events: list[asyncio.Event] = []
55+
cleanup_complete: asyncio.Event = controller.cleanup()
5656
with suppress(TimeoutError):
57-
await asyncio.gather(
58-
*[
59-
asyncio.wait_for(cleanup_complete_event.wait(), 1)
60-
for cleanup_complete_event in cleanup_complete_events
61-
]
62-
)
57+
await asyncio.wait_for(cleanup_complete.wait(), 1)
6358

6459
return devices_count > 0
6560

0 commit comments

Comments
 (0)