mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Add remaining HEOS exception translations (#136878)
Add coordinator exc translations
This commit is contained in:
parent
fd6e2a6e19
commit
a0b8ad16ba
@ -82,12 +82,20 @@ class HeosCoordinator(DataUpdateCoordinator[None]):
|
|||||||
try:
|
try:
|
||||||
await self.heos.connect()
|
await self.heos.connect()
|
||||||
except HeosError as error:
|
except HeosError as error:
|
||||||
raise ConfigEntryNotReady from error
|
_LOGGER.debug("Unable to connect to %s", self.host, exc_info=True)
|
||||||
|
raise ConfigEntryNotReady(
|
||||||
|
translation_domain=DOMAIN,
|
||||||
|
translation_key="unable_to_connect",
|
||||||
|
translation_placeholders={"host": self.host},
|
||||||
|
) from error
|
||||||
# Load players
|
# Load players
|
||||||
try:
|
try:
|
||||||
await self.heos.get_players()
|
await self.heos.get_players()
|
||||||
except HeosError as error:
|
except HeosError as error:
|
||||||
raise ConfigEntryNotReady from error
|
_LOGGER.debug("Unexpected error retrieving players", exc_info=True)
|
||||||
|
raise ConfigEntryNotReady(
|
||||||
|
translation_domain=DOMAIN, translation_key="unable_to_get_players"
|
||||||
|
) from error
|
||||||
|
|
||||||
if not self.heos.is_signed_in:
|
if not self.heos.is_signed_in:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
|
@ -54,7 +54,7 @@ rules:
|
|||||||
entity-device-class: done
|
entity-device-class: done
|
||||||
entity-disabled-by-default: done
|
entity-disabled-by-default: done
|
||||||
entity-translations: done
|
entity-translations: done
|
||||||
exception-translations: todo
|
exception-translations: done
|
||||||
icon-translations: done
|
icon-translations: done
|
||||||
reconfiguration-flow: done
|
reconfiguration-flow: done
|
||||||
repair-issues: todo
|
repair-issues: todo
|
||||||
|
@ -112,6 +112,12 @@
|
|||||||
"not_heos_media_player": {
|
"not_heos_media_player": {
|
||||||
"message": "Entity {entity_id} is not a HEOS media player entity"
|
"message": "Entity {entity_id} is not a HEOS media player entity"
|
||||||
},
|
},
|
||||||
|
"unable_to_connect": {
|
||||||
|
"message": "Unable to connect to {host}"
|
||||||
|
},
|
||||||
|
"unable_to_get_players": {
|
||||||
|
"message": "Unexpected error retrieving players"
|
||||||
|
},
|
||||||
"unknown_source": {
|
"unknown_source": {
|
||||||
"message": "Unknown source: {source}"
|
"message": "Unknown source: {source}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user