mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Handle TimeoutError for lamarzocco (#144042)
This commit is contained in:
parent
52b0b1e2ab
commit
1143468eb5
@ -70,7 +70,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: LaMarzoccoConfigEntry) -
|
|||||||
raise ConfigEntryAuthFailed(
|
raise ConfigEntryAuthFailed(
|
||||||
translation_domain=DOMAIN, translation_key="authentication_failed"
|
translation_domain=DOMAIN, translation_key="authentication_failed"
|
||||||
) from ex
|
) from ex
|
||||||
except RequestNotSuccessful as ex:
|
except (RequestNotSuccessful, TimeoutError) as ex:
|
||||||
_LOGGER.debug(ex, exc_info=True)
|
_LOGGER.debug(ex, exc_info=True)
|
||||||
raise ConfigEntryNotReady(
|
raise ConfigEntryNotReady(
|
||||||
translation_domain=DOMAIN, translation_key="api_error"
|
translation_domain=DOMAIN, translation_key="api_error"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user