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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 22 deletions

View File

@ -300,19 +300,5 @@
"on": "[%key:common::state::open%]"
}
}
},
"device_class": {
"co": "carbon monoxide",
"cold": "cold",
"gas": "gas",
"heat": "heat",
"moisture": "moisture",
"motion": "motion",
"occupancy": "occupancy",
"power": "power",
"problem": "problem",
"smoke": "smoke",
"sound": "sound",
"vibration": "vibration"
}
}

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: