mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 23:31:37 +02:00
Sort Tuya DPCodes alphabetically (#150477)
This commit is contained in:
@@ -101,11 +101,11 @@ class DPCode(StrEnum):
|
||||
AIR_QUALITY = "air_quality"
|
||||
AIR_QUALITY_INDEX = "air_quality_index"
|
||||
ALARM_DELAY_TIME = "alarm_delay_time"
|
||||
ALARM_MESSAGE = "alarm_message"
|
||||
ALARM_MSG = "alarm_msg"
|
||||
ALARM_SWITCH = "alarm_switch" # Alarm switch
|
||||
ALARM_TIME = "alarm_time" # Alarm time
|
||||
ALARM_VOLUME = "alarm_volume" # Alarm volume
|
||||
ALARM_MESSAGE = "alarm_message"
|
||||
ALARM_MSG = "alarm_msg"
|
||||
ANGLE_HORIZONTAL = "angle_horizontal"
|
||||
ANGLE_VERTICAL = "angle_vertical"
|
||||
ANION = "anion" # Ionizer unit
|
||||
@@ -147,8 +147,8 @@ class DPCode(StrEnum):
|
||||
CLEAN_AREA = "clean_area"
|
||||
CLEAN_TIME = "clean_time"
|
||||
CLICK_SUSTAIN_TIME = "click_sustain_time"
|
||||
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
|
||||
CLOSED_OPENED_KIT = "closed_opened_kit"
|
||||
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
|
||||
CO_STATE = "co_state"
|
||||
CO_STATUS = "co_status"
|
||||
CO_VALUE = "co_value"
|
||||
@@ -159,14 +159,14 @@ class DPCode(StrEnum):
|
||||
COLOUR_DATA = "colour_data" # Colored light mode
|
||||
COLOUR_DATA_HSV = "colour_data_hsv" # Colored light mode
|
||||
COLOUR_DATA_V2 = "colour_data_v2" # Colored light mode
|
||||
COOK_TEMPERATURE = "cook_temperature"
|
||||
COOK_TIME = "cook_time"
|
||||
CONCENTRATION_SET = "concentration_set" # Concentration setting
|
||||
CONTROL = "control"
|
||||
CONTROL_2 = "control_2"
|
||||
CONTROL_3 = "control_3"
|
||||
CONTROL_BACK = "control_back"
|
||||
CONTROL_BACK_MODE = "control_back_mode"
|
||||
COOK_TEMPERATURE = "cook_temperature"
|
||||
COOK_TIME = "cook_time"
|
||||
COUNTDOWN = "countdown" # Countdown
|
||||
COUNTDOWN_1 = "countdown_1"
|
||||
COUNTDOWN_2 = "countdown_2"
|
||||
@@ -202,11 +202,11 @@ class DPCode(StrEnum):
|
||||
FAN_COOL = "fan_cool" # Cool wind
|
||||
FAN_DIRECTION = "fan_direction" # Fan direction
|
||||
FAN_HORIZONTAL = "fan_horizontal" # Horizontal swing flap angle
|
||||
FAN_MODE = "fan_mode"
|
||||
FAN_SPEED = "fan_speed"
|
||||
FAN_SPEED_ENUM = "fan_speed_enum" # Speed mode
|
||||
FAN_SPEED_PERCENT = "fan_speed_percent" # Stepless speed
|
||||
FAN_SWITCH = "fan_switch"
|
||||
FAN_MODE = "fan_mode"
|
||||
FAN_VERTICAL = "fan_vertical" # Vertical swing flap angle
|
||||
FAR_DETECTION = "far_detection"
|
||||
FAULT = "fault"
|
||||
@@ -249,10 +249,10 @@ class DPCode(StrEnum):
|
||||
LIQUID_LEVEL_PERCENT = "liquid_level_percent"
|
||||
LIQUID_STATE = "liquid_state"
|
||||
LOCK = "lock" # Lock / Child lock
|
||||
MASTER_MODE = "master_mode" # alarm mode
|
||||
MASTER_STATE = "master_state" # alarm state
|
||||
MACH_OPERATE = "mach_operate"
|
||||
MANUAL_FEED = "manual_feed"
|
||||
MASTER_MODE = "master_mode" # alarm mode
|
||||
MASTER_STATE = "master_state" # alarm state
|
||||
MATERIAL = "material" # Material
|
||||
MAX_SET = "max_set"
|
||||
MINI_SET = "mini_set"
|
||||
@@ -266,6 +266,7 @@ class DPCode(StrEnum):
|
||||
MUFFLING = "muffling" # Muffling
|
||||
NEAR_DETECTION = "near_detection"
|
||||
OPPOSITE = "opposite"
|
||||
OXYGEN = "oxygen" # Oxygen bar
|
||||
PAUSE = "pause"
|
||||
PERCENT_CONTROL = "percent_control"
|
||||
PERCENT_CONTROL_2 = "percent_control_2"
|
||||
@@ -273,7 +274,6 @@ class DPCode(StrEnum):
|
||||
PERCENT_STATE = "percent_state"
|
||||
PERCENT_STATE_2 = "percent_state_2"
|
||||
PERCENT_STATE_3 = "percent_state_3"
|
||||
POSITION = "position"
|
||||
PHASE_A = "phase_a"
|
||||
PHASE_B = "phase_b"
|
||||
PHASE_C = "phase_c"
|
||||
@@ -283,20 +283,20 @@ class DPCode(StrEnum):
|
||||
PM25 = "pm25"
|
||||
PM25_STATE = "pm25_state"
|
||||
PM25_VALUE = "pm25_value"
|
||||
POSITION = "position"
|
||||
POWDER_SET = "powder_set" # Powder
|
||||
POWER = "power"
|
||||
POWER_GO = "power_go"
|
||||
POWER_TOTAL = "power_total"
|
||||
PREHEAT = "preheat"
|
||||
PREHEAT_1 = "preheat_1"
|
||||
PREHEAT_2 = "preheat_2"
|
||||
POWER_TOTAL = "power_total"
|
||||
PRESENCE_STATE = "presence_state"
|
||||
PRESSURE_STATE = "pressure_state"
|
||||
PRESSURE_VALUE = "pressure_value"
|
||||
PUMP = "pump"
|
||||
PUMP_RESET = "pump_reset" # Water pump reset
|
||||
PUMP_TIME = "pump_time" # Water pump duration
|
||||
OXYGEN = "oxygen" # Oxygen bar
|
||||
RAIN_24H = "rain_24h" # Total daily rainfall in mm
|
||||
RAIN_RATE = "rain_rate" # Rain intensity in mm/h
|
||||
RECORD_MODE = "record_mode"
|
||||
@@ -382,7 +382,6 @@ class DPCode(StrEnum):
|
||||
TEMP_CONTROLLER = "temp_controller"
|
||||
TEMP_CORRECTION = "temp_correction"
|
||||
TEMP_CURRENT = "temp_current" # Current temperature in °C
|
||||
TEMP_CURRENT_F = "temp_current_f" # Current temperature in °F
|
||||
TEMP_CURRENT_EXTERNAL = (
|
||||
"temp_current_external" # Current external temperature in Celsius
|
||||
)
|
||||
@@ -398,6 +397,7 @@ class DPCode(StrEnum):
|
||||
TEMP_CURRENT_EXTERNAL_F = (
|
||||
"temp_current_external_f" # Current external temperature in Fahrenheit
|
||||
)
|
||||
TEMP_CURRENT_F = "temp_current_f" # Current temperature in °F
|
||||
TEMP_INDOOR = "temp_indoor" # Indoor temperature in °C
|
||||
TEMP_SET = "temp_set" # Set the temperature in °C
|
||||
TEMP_SET_F = "temp_set_f" # Set the temperature in °F
|
||||
@@ -411,9 +411,9 @@ class DPCode(StrEnum):
|
||||
TOTAL_CLEAN_COUNT = "total_clean_count"
|
||||
TOTAL_CLEAN_TIME = "total_clean_time"
|
||||
TOTAL_FORWARD_ENERGY = "total_forward_energy"
|
||||
TOTAL_TIME = "total_time"
|
||||
TOTAL_PM = "total_pm"
|
||||
TOTAL_POWER = "total_power"
|
||||
TOTAL_TIME = "total_time"
|
||||
TVOC = "tvoc"
|
||||
UPPER_TEMP = "upper_temp"
|
||||
UPPER_TEMP_F = "upper_temp_f"
|
||||
@@ -432,10 +432,10 @@ class DPCode(StrEnum):
|
||||
WARM = "warm" # Heat preservation
|
||||
WARM_TIME = "warm_time" # Heat preservation time
|
||||
WATER = "water"
|
||||
WATER_LEVEL = "water_level"
|
||||
WATER_RESET = "water_reset" # Resetting of water usage days
|
||||
WATER_SET = "water_set" # Water level
|
||||
WATER_TIME = "water_time" # Water usage duration
|
||||
WATER_LEVEL = "water_level"
|
||||
WATERSENSOR_STATE = "watersensor_state"
|
||||
WEATHER_DELAY = "weather_delay"
|
||||
WET = "wet" # Humidification
|
||||
|
Reference in New Issue
Block a user