mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +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:
|
||||
await func(*args, **kwargs)
|
||||
except AuthFail as ex:
|
||||
msg = "Authentication failed."
|
||||
_LOGGER.debug(msg, exc_info=True)
|
||||
raise ConfigEntryAuthFailed(msg) from ex
|
||||
_LOGGER.debug("Authentication failed", exc_info=True)
|
||||
raise ConfigEntryAuthFailed(
|
||||
translation_domain=DOMAIN, translation_key="authentication_failed"
|
||||
) from ex
|
||||
except RequestNotSuccessful as ex:
|
||||
_LOGGER.debug(ex, exc_info=True)
|
||||
raise UpdateFailed(f"Querying API failed. Error: {ex}") from ex
|
||||
|
@ -196,6 +196,9 @@
|
||||
}
|
||||
},
|
||||
"exceptions": {
|
||||
"authentication_failed": {
|
||||
"message": "Authentication failed"
|
||||
},
|
||||
"auto_on_off_error": {
|
||||
"message": "Error while setting auto on/off to {state} for {id}"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user