mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix Shelly sleeping Gen2 device updates (#86198)
This commit is contained in:
parent
37c1052cce
commit
0dabbcfca1
@ -475,6 +475,11 @@ class ShellyRpcCoordinator(DataUpdateCoordinator[None]):
|
|||||||
|
|
||||||
async def _async_disconnected(self) -> None:
|
async def _async_disconnected(self) -> None:
|
||||||
"""Handle device disconnected."""
|
"""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:
|
async with self._connection_lock:
|
||||||
if not self.connected: # Already disconnected
|
if not self.connected: # Already disconnected
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user