mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Retry tibber setup (#81785)
* Handle integration setup retries * Fix black error * Update to falsy check Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Remove duplicated log * Update exception message Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
45be2a260e
commit
5040b94330
@ -53,6 +53,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
try:
|
||||
await tibber_connection.update_info()
|
||||
if not tibber_connection.name:
|
||||
raise ConfigEntryNotReady("Could not fetch Tibber data.")
|
||||
|
||||
except asyncio.TimeoutError as err:
|
||||
raise ConfigEntryNotReady from err
|
||||
except aiohttp.ClientError as err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user