mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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()
|
data_sensors = await self.api.get_sensor_data()
|
||||||
await self.api.logout()
|
await self.api.logout()
|
||||||
except exceptions.CannotAuthenticate as err:
|
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 (
|
except (
|
||||||
exceptions.CannotConnect,
|
exceptions.CannotConnect,
|
||||||
exceptions.AlreadyLogged,
|
exceptions.AlreadyLogged,
|
||||||
|
@ -70,9 +70,7 @@ rules:
|
|||||||
status: exempt
|
status: exempt
|
||||||
comment: no known use case
|
comment: no known use case
|
||||||
entity-translations: done
|
entity-translations: done
|
||||||
exception-translations:
|
exception-translations: done
|
||||||
status: todo
|
|
||||||
comment: some missing in coordinator
|
|
||||||
icon-translations: done
|
icon-translations: done
|
||||||
reconfiguration-flow:
|
reconfiguration-flow:
|
||||||
status: todo
|
status: todo
|
||||||
|
@ -115,6 +115,9 @@
|
|||||||
"exceptions": {
|
"exceptions": {
|
||||||
"update_failed": {
|
"update_failed": {
|
||||||
"message": "Error fetching data: {error}"
|
"message": "Error fetching data: {error}"
|
||||||
|
},
|
||||||
|
"cannot_authenticate": {
|
||||||
|
"message": "Error authenticating: {error}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user