1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Move ZHA config panel section translations to the backend (#49816)

This commit is contained in:
David F. Mulcahey
2021-04-30 12:29:34 -04:00
committed by GitHub
parent 684ea9e49b
commit 4ed74cd2f5
3 changed files with 32 additions and 0 deletions

View File

@@ -142,6 +142,12 @@ def gen_strings_schema(config: Config, integration: Integration):
vol.Optional("system_health"): {
vol.Optional("info"): {str: cv.string_with_no_html}
},
vol.Optional("config_panel"): cv.schema_with_slug_keys(
cv.schema_with_slug_keys(
cv.string_with_no_html, slug_validator=lowercase_validator
),
slug_validator=vol.Any("_", cv.slug),
),
}
)