diff --git a/homeassistant/components/automation/strings.json b/homeassistant/components/automation/strings.json index b841d44e00ab..ea18ca3c105a 100644 --- a/homeassistant/components/automation/strings.json +++ b/homeassistant/components/automation/strings.json @@ -1,5 +1,6 @@ { "common": { + "validation_failed_short_title": "Automation failed to set up", "validation_failed_title": "Automation {name} failed to set up" }, "entity_component": { @@ -48,22 +49,27 @@ }, "validation_failed_actions": { "description": "The automation \"{name}\" (`{entity_id}`) is not active because its actions could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.", + "short_title": "[%key:component::automation::common::validation_failed_short_title%]", "title": "[%key:component::automation::common::validation_failed_title%]" }, "validation_failed_blueprint": { "description": "The blueprinted automation \"{name}\" (`{entity_id}`) failed to set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.", + "short_title": "[%key:component::automation::common::validation_failed_short_title%]", "title": "[%key:component::automation::common::validation_failed_title%]" }, "validation_failed_conditions": { "description": "The automation \"{name}\" (`{entity_id}`) is not active because its conditions could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.", + "short_title": "[%key:component::automation::common::validation_failed_short_title%]", "title": "[%key:component::automation::common::validation_failed_title%]" }, "validation_failed_schema": { "description": "The automation \"{name}\" (`{entity_id}`) is not active because the configuration has errors.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.", + "short_title": "[%key:component::automation::common::validation_failed_short_title%]", "title": "[%key:component::automation::common::validation_failed_title%]" }, "validation_failed_triggers": { "description": "The automation \"{name}\" (`{entity_id}`) is not active because its triggers could not be set up.\n\nError:`{error}`.\n\nTo fix this error, [edit the automation]({edit}) to correct it, then save and reload the automation configuration.", + "short_title": "[%key:component::automation::common::validation_failed_short_title%]", "title": "[%key:component::automation::common::validation_failed_title%]" } }, diff --git a/script/hassfest/translations.py b/script/hassfest/translations.py index 19ae1cec5db1..c1a62460114f 100644 --- a/script/hassfest/translations.py +++ b/script/hassfest/translations.py @@ -325,6 +325,7 @@ def gen_issues_schema(frontend_issues: frozenset[str]) -> dict[str, Any]: probatio.Schema( { probatio.Required("title"): translation_value_validator, + probatio.Optional("short_title"): translation_value_validator, probatio.Exclusive( "description", "fixable" ): translation_value_validator, diff --git a/tests/hassfest/test_translations.py b/tests/hassfest/test_translations.py index 83b1d4fad065..846560d696dd 100644 --- a/tests/hassfest/test_translations.py +++ b/tests/hassfest/test_translations.py @@ -251,6 +251,7 @@ SAMPLE_STRINGS = { }, "deprecated_yaml": { "title": "Deprecated YAML configuration", + "short_title": "Deprecated YAML", "description": "YAML configuration is deprecated, please use the UI", }, },