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

Clean up unused device class translations from binary sensor (#96241)

This commit is contained in:
Franck Nijhof
2023-07-10 12:23:42 +02:00
committed by GitHub
parent bc2319bbe6
commit e7b00da662
2 changed files with 0 additions and 22 deletions

View File

@@ -431,14 +431,6 @@ def validate_translation_file( # noqa: C901
strings_schema = gen_auth_schema(config, integration)
elif integration.domain == "onboarding":
strings_schema = ONBOARDING_SCHEMA
elif integration.domain == "binary_sensor":
strings_schema = gen_strings_schema(config, integration).extend(
{
vol.Optional("device_class"): cv.schema_with_slug_keys(
translation_value_validator, slug_validator=vol.Any("_", cv.slug)
)
}
)
elif integration.domain == "homeassistant_hardware":
strings_schema = gen_ha_hardware_schema(config, integration)
else: