mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix WLED exception on close (#57752)
This commit is contained in:
parent
49b07224bf
commit
8dbff0b4b3
@ -92,6 +92,7 @@ class WLEDDataUpdateCoordinator(DataUpdateCoordinator[WLEDDevice]):
|
||||
|
||||
async def close_websocket(_) -> None:
|
||||
"""Close WebSocket connection."""
|
||||
self.unsub = None
|
||||
await self.wled.disconnect()
|
||||
|
||||
# Clean disconnect WebSocket on Home Assistant shutdown
|
||||
|
Loading…
x
Reference in New Issue
Block a user