mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Reconnect on any ScreenLogic exception (#89269)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
6ebd493c4d
commit
8c2569d2ce
@ -159,11 +159,9 @@ class ScreenlogicDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
"""Fetch data from the Screenlogic gateway."""
|
||||
try:
|
||||
await self._async_update_configured_data()
|
||||
except ScreenLogicError as error:
|
||||
_LOGGER.warning("Update error - attempting reconnect: %s", error)
|
||||
except (ScreenLogicError, ScreenLogicWarning) as ex:
|
||||
_LOGGER.warning("Update error - attempting reconnect: %s", ex)
|
||||
await self._async_reconnect_update_data()
|
||||
except ScreenLogicWarning as warn:
|
||||
raise UpdateFailed(f"Incomplete update: {warn}") from warn
|
||||
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user