mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Clean up unused device class translations from binary sensor (#96241)
This commit is contained in:
parent
bc2319bbe6
commit
e7b00da662
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user