Retry tado setup later when cloud service is unavailable (#39748)
This commit is contained in:
1 parent
4b84b74b89
commit
8c96eb7c56
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user