mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Do not try to reconnect shelly on disconnected if Home Assistant is stopping (#83805)
This commit is contained in:
parent
80a8d5443d
commit
d91e44485c
@ -479,8 +479,9 @@ class ShellyRpcCoordinator(DataUpdateCoordinator):
|
||||
return
|
||||
self.connected = False
|
||||
self._async_run_disconnected_events()
|
||||
# Try to reconnect right away
|
||||
await self.async_request_refresh()
|
||||
# Try to reconnect right away if hass is not stopping
|
||||
if not self.hass.is_stopping:
|
||||
await self.async_request_refresh()
|
||||
|
||||
@callback
|
||||
def _async_run_disconnected_events(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user