Migrate Tuya translations (#83105)

* Migrate Tuya translations

* Don't use DPCode as translation key
This commit is contained in:
Franck Nijhof
2022-12-02 11:20:17 +01:00
committed by GitHub
parent 4edebacba5
commit fc93521e02
7 changed files with 429 additions and 220 deletions

View File

@@ -84,33 +84,6 @@ PLATFORMS = [
]
class TuyaDeviceClass(StrEnum):
"""Tuya specific device classes, used for translations."""
AIR_QUALITY = "tuya__air_quality"
CURTAIN_MODE = "tuya__curtain_mode"
CURTAIN_MOTOR_MODE = "tuya__curtain_motor_mode"
BASIC_ANTI_FLICKR = "tuya__basic_anti_flickr"
BASIC_NIGHTVISION = "tuya__basic_nightvision"
COUNTDOWN = "tuya__countdown"
DECIBEL_SENSITIVITY = "tuya__decibel_sensitivity"
FAN_ANGLE = "tuya__fan_angle"
FINGERBOT_MODE = "tuya__fingerbot_mode"
HUMIDIFIER_SPRAY_MODE = "tuya__humidifier_spray_mode"
HUMIDIFIER_LEVEL = "tuya__humidifier_level"
HUMIDIFIER_MOODLIGHTING = "tuya__humidifier_moodlighting"
IPC_WORK_MODE = "tuya__ipc_work_mode"
LED_TYPE = "tuya__led_type"
LIGHT_MODE = "tuya__light_mode"
MOTION_SENSITIVITY = "tuya__motion_sensitivity"
RECORD_MODE = "tuya__record_mode"
RELAY_STATUS = "tuya__relay_status"
STATUS = "tuya__status"
VACUUM_CISTERN = "tuya__vacuum_cistern"
VACUUM_COLLECTION = "tuya__vacuum_collection"
VACUUM_MODE = "tuya__vacuum_mode"
class WorkMode(StrEnum):
"""Work modes."""