mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Retry tado setup later when cloud service is unavailable (#39748)
This commit is contained in:
parent
4b84b74b89
commit
8c96eb7c56
@ -91,6 +91,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
except RuntimeError as exc:
|
||||
_LOGGER.error("Failed to setup tado: %s", exc)
|
||||
return ConfigEntryNotReady
|
||||
except requests.exceptions.Timeout as ex:
|
||||
raise ConfigEntryNotReady from ex
|
||||
except requests.exceptions.HTTPError as ex:
|
||||
if ex.response.status_code > 400 and ex.response.status_code < 500:
|
||||
_LOGGER.error("Failed to login to tado: %s", ex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user