mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Daikin fixes (#18415)
* updated pydaikin version * some Daikin models does not support fan settings
This commit is contained in:
parent
8547489014
commit
996da72a4c
@ -105,16 +105,10 @@ class DaikinClimate(ClimateDevice):
|
||||
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_FAN_MODE]
|
||||
if self._api.device.values.get(daikin_attr) is not None:
|
||||
self._supported_features |= SUPPORT_FAN_MODE
|
||||
else:
|
||||
# even devices without support must have a default valid value
|
||||
self._api.device.values[daikin_attr] = 'A'
|
||||
|
||||
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_SWING_MODE]
|
||||
if self._api.device.values.get(daikin_attr) is not None:
|
||||
self._supported_features |= SUPPORT_SWING_MODE
|
||||
else:
|
||||
# even devices without support must have a default valid value
|
||||
self._api.device.values[daikin_attr] = '0'
|
||||
|
||||
def get(self, key):
|
||||
"""Retrieve device settings from API library cache."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user