From e7b00da662f220e7f96cb0d4df7c0c36d4a5f5d5 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 10 Jul 2023 12:23:42 +0200 Subject: [PATCH] Clean up unused device class translations from binary sensor (#96241) --- .../components/binary_sensor/strings.json | 14 -------------- script/hassfest/translations.py | 8 -------- 2 files changed, 22 deletions(-) diff --git a/homeassistant/components/binary_sensor/strings.json b/homeassistant/components/binary_sensor/strings.json index ee70420fec0..abe7efee3ed 100644 --- a/homeassistant/components/binary_sensor/strings.json +++ b/homeassistant/components/binary_sensor/strings.json @@ -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" } } diff --git a/script/hassfest/translations.py b/script/hassfest/translations.py index 5f233b4dec8..56609e57fd9 100644 --- a/script/hassfest/translations.py +++ b/script/hassfest/translations.py @@ -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: