mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix Shelly sleeping Gen2 device updates (#86198)
This commit is contained in:
committed by
Paulus Schoutsen
parent
58beab1b59
commit
8dd0752bd0
@@ -475,6 +475,11 @@ class ShellyRpcCoordinator(DataUpdateCoordinator[None]):
|
||||
|
||||
async def _async_disconnected(self) -> None:
|
||||
"""Handle device disconnected."""
|
||||
# Sleeping devices send data and disconnects
|
||||
# There are no disconnect events for sleeping devices
|
||||
if self.entry.data.get(CONF_SLEEP_PERIOD):
|
||||
return
|
||||
|
||||
async with self._connection_lock:
|
||||
if not self.connected: # Already disconnected
|
||||
return
|
||||
|
Reference in New Issue
Block a user