mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Try to reconnect right away when disconnected from Shelly Gen2 devices (#83701)
This commit is contained in:
parent
456c5515c8
commit
af1c326cff
@ -479,6 +479,8 @@ class ShellyRpcCoordinator(DataUpdateCoordinator):
|
|||||||
return
|
return
|
||||||
self.connected = False
|
self.connected = False
|
||||||
self._async_run_disconnected_events()
|
self._async_run_disconnected_events()
|
||||||
|
# Try to reconnect right away
|
||||||
|
await self.async_request_refresh()
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _async_run_disconnected_events(self) -> None:
|
def _async_run_disconnected_events(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user