mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add missing exception translation in Vodafone Station (#140951)
* Add missing exception translation in Vodafone Station * strings
This commit is contained in:
parent
2ec80fd1ca
commit
32f9c07254
@ -122,7 +122,11 @@ class VodafoneStationRouter(DataUpdateCoordinator[UpdateCoordinatorDataType]):
|
||||
data_sensors = await self.api.get_sensor_data()
|
||||
await self.api.logout()
|
||||
except exceptions.CannotAuthenticate as err:
|
||||
raise ConfigEntryAuthFailed from err
|
||||
raise ConfigEntryAuthFailed(
|
||||
translation_domain=DOMAIN,
|
||||
translation_key="cannot_authenticate",
|
||||
translation_placeholders={"error": repr(err)},
|
||||
) from err
|
||||
except (
|
||||
exceptions.CannotConnect,
|
||||
exceptions.AlreadyLogged,
|
||||
|
@ -70,9 +70,7 @@ rules:
|
||||
status: exempt
|
||||
comment: no known use case
|
||||
entity-translations: done
|
||||
exception-translations:
|
||||
status: todo
|
||||
comment: some missing in coordinator
|
||||
exception-translations: done
|
||||
icon-translations: done
|
||||
reconfiguration-flow:
|
||||
status: todo
|
||||
|
@ -115,6 +115,9 @@
|
||||
"exceptions": {
|
||||
"update_failed": {
|
||||
"message": "Error fetching data: {error}"
|
||||
},
|
||||
"cannot_authenticate": {
|
||||
"message": "Error authenticating: {error}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user