mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix missing windspeed in Tuya climate (#65511)
This commit is contained in:
parent
770707f487
commit
3e0856ccac
@ -223,7 +223,9 @@ class TuyaClimateEntity(TuyaEntity, ClimateEntity):
|
||||
|
||||
# Determine fan modes
|
||||
if enum_type := self.find_dpcode(
|
||||
DPCode.FAN_SPEED_ENUM, dptype=DPType.ENUM, prefer_function=True
|
||||
(DPCode.FAN_SPEED_ENUM, DPCode.WINDSPEED),
|
||||
dptype=DPType.ENUM,
|
||||
prefer_function=True,
|
||||
):
|
||||
self._attr_supported_features |= SUPPORT_FAN_MODE
|
||||
self._attr_fan_modes = enum_type.range
|
||||
|
@ -367,6 +367,7 @@ class DPCode(StrEnum):
|
||||
WATER_SET = "water_set" # Water level
|
||||
WATERSENSOR_STATE = "watersensor_state"
|
||||
WET = "wet" # Humidification
|
||||
WINDSPEED = "windspeed"
|
||||
WIRELESS_BATTERYLOCK = "wireless_batterylock"
|
||||
WIRELESS_ELECTRICITY = "wireless_electricity"
|
||||
WORK_MODE = "work_mode" # Working mode
|
||||
|
Loading…
x
Reference in New Issue
Block a user