Add current temperature sensor for Tuya Fan (fs) (#65744)

This commit is contained in:
dougiteixeira 2022-02-05 07:19:29 -03:00 committed by GitHub
parent 6871271e73
commit bf0816d4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -803,6 +803,16 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
device_class=TuyaDeviceClass.AIR_QUALITY,
),
),
# Fan
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48quojr54
"fs": (
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT,
name="Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
),
}
# Socket (duplicate of `kg`)