Complete Heater (qn) device support to Tuya (#58296)

This commit is contained in:
Franck Nijhof 2021-10-23 20:06:46 +02:00 committed by GitHub
parent 7d0fc8ca98
commit 43abf38d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View file

@ -212,6 +212,16 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
# PIR Detector
# https://developer.tuya.com/en/docs/iot/categorypir?id=Kaiuz3ss11b80
"pir": BATTERY_SENSORS,
# Heater
# https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm
"qn": (
SensorEntityDescription(
key=DPCode.WORK_POWER,
name="Power",
device_class=DEVICE_CLASS_POWER,
state_class=STATE_CLASS_MEASUREMENT,
),
),
# Gas Detector
# https://developer.tuya.com/en/docs/iot/categoryrqbj?id=Kaiuz3d162ubw
"rqbj": (