1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Fix missing temperature level on Tuya Heater (qn) devices (#58643)

This commit is contained in:
Franck Nijhof 2021-10-29 00:27:22 +02:00 committed by GitHub
parent 8925f5cc45
commit 42a2aed8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -210,6 +210,7 @@ class DPCode(str, Enum):
LED_TYPE_1 = "led_type_1"
LED_TYPE_2 = "led_type_2"
LED_TYPE_3 = "led_type_3"
LEVEL = "level"
LIGHT = "light" # Light
LIGHT_MODE = "light_mode"
LOCK = "lock" # Lock / Child lock

View File

@ -75,6 +75,15 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
entity_category=ENTITY_CATEGORY_CONFIG,
),
),
# Heater
# https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm
"qn": (
SelectEntityDescription(
key=DPCode.LEVEL,
name="Temperature Level",
icon="mdi:thermometer-lines",
),
),
# Siren Alarm
# https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu
"sgbj": (