Tado, setup to return False and not ConfigEntryNotReady on RuntimeError (#53637)

This commit is contained in:
Milan Meulemans 2021-07-28 21:25:44 +02:00 committed by GitHub
parent 67ac87e915
commit 7bd46b7705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return False
except RuntimeError as exc:
_LOGGER.error("Failed to setup tado: %s", exc)
return ConfigEntryNotReady
return False
except requests.exceptions.Timeout as ex:
raise ConfigEntryNotReady from ex
except requests.exceptions.HTTPError as ex: