Get ServiceValidationError message from translation cache only (#113704)
* Get ServiceValidationError message from translation cache only * Remove message for NotValidPresetModeError
This commit is contained in:
parent
ec7aecef84
commit
3dc8df2403
18 changed files with 16 additions and 43 deletions
|
@ -95,7 +95,6 @@ def __get_coordinator(
|
|||
|
||||
if not entry:
|
||||
raise ServiceValidationError(
|
||||
f"Invalid config entry: {entry_id}",
|
||||
translation_domain=DOMAIN,
|
||||
translation_key="invalid_config_entry",
|
||||
translation_placeholders={
|
||||
|
@ -104,7 +103,6 @@ def __get_coordinator(
|
|||
)
|
||||
if entry.state != ConfigEntryState.LOADED:
|
||||
raise ServiceValidationError(
|
||||
f"{entry.title} is not loaded",
|
||||
translation_domain=DOMAIN,
|
||||
translation_key="unloaded_config_entry",
|
||||
translation_placeholders={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue