mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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]
|
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_FAN_MODE]
|
||||||
if self._api.device.values.get(daikin_attr) is not None:
|
if self._api.device.values.get(daikin_attr) is not None:
|
||||||
self._supported_features |= SUPPORT_FAN_MODE
|
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]
|
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_SWING_MODE]
|
||||||
if self._api.device.values.get(daikin_attr) is not None:
|
if self._api.device.values.get(daikin_attr) is not None:
|
||||||
self._supported_features |= SUPPORT_SWING_MODE
|
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):
|
def get(self, key):
|
||||||
"""Retrieve device settings from API library cache."""
|
"""Retrieve device settings from API library cache."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user