Fix in Daikin.py for set swing_mode and speed (#18013)
parent
1c5800d98b
commit
ab8299b6cf
|
@ -174,8 +174,10 @@ class DaikinClimate(ClimateDevice):
|
|||
|
||||
daikin_attr = HA_ATTR_TO_DAIKIN.get(attr)
|
||||
if daikin_attr is not None:
|
||||
if value in self._list[attr]:
|
||||
if attr == ATTR_OPERATION_MODE:
|
||||
values[daikin_attr] = HA_STATE_TO_DAIKIN[value]
|
||||
elif value in self._list[attr]:
|
||||
values[daikin_attr] = value.lower()
|
||||
else:
|
||||
_LOGGER.error("Invalid value %s for %s", attr, value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue