1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-26 02:06:09 +01:00

Add pre-defined entity name translations (#89792)

This commit is contained in:
Franck Nijhof
2023-03-16 21:10:20 +01:00
committed by GitHub
parent e6f280cf7a
commit f9919bb7cf
34 changed files with 402 additions and 4 deletions
+1
View File
@@ -266,6 +266,7 @@ def gen_strings_schema(config: Config, integration: Integration) -> vol.Schema:
},
vol.Optional("entity_component"): cv.schema_with_slug_keys(
{
vol.Optional("name"): str,
vol.Optional("state"): cv.schema_with_slug_keys(
cv.string_with_no_html,
slug_validator=translation_key_validator,