mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Add translation for ConfigEntryAuthFailed to lamarzocco (#131145)
This commit is contained in:
parent
2a6e08caf9
commit
de9f9f32c7
@ -126,9 +126,10 @@ class LaMarzoccoUpdateCoordinator(DataUpdateCoordinator[None]):
|
|||||||
try:
|
try:
|
||||||
await func(*args, **kwargs)
|
await func(*args, **kwargs)
|
||||||
except AuthFail as ex:
|
except AuthFail as ex:
|
||||||
msg = "Authentication failed."
|
_LOGGER.debug("Authentication failed", exc_info=True)
|
||||||
_LOGGER.debug(msg, exc_info=True)
|
raise ConfigEntryAuthFailed(
|
||||||
raise ConfigEntryAuthFailed(msg) from ex
|
translation_domain=DOMAIN, translation_key="authentication_failed"
|
||||||
|
) from ex
|
||||||
except RequestNotSuccessful as ex:
|
except RequestNotSuccessful as ex:
|
||||||
_LOGGER.debug(ex, exc_info=True)
|
_LOGGER.debug(ex, exc_info=True)
|
||||||
raise UpdateFailed(f"Querying API failed. Error: {ex}") from ex
|
raise UpdateFailed(f"Querying API failed. Error: {ex}") from ex
|
||||||
|
@ -196,6 +196,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exceptions": {
|
"exceptions": {
|
||||||
|
"authentication_failed": {
|
||||||
|
"message": "Authentication failed"
|
||||||
|
},
|
||||||
"auto_on_off_error": {
|
"auto_on_off_error": {
|
||||||
"message": "Error while setting auto on/off to {state} for {id}"
|
"message": "Error while setting auto on/off to {state} for {id}"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user