Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Daikin fixes (#18415)
* updated pydaikin version

* some Daikin models does not support fan settings
  • Loading branch information
fredrike authored and fabaff committed Nov 13, 2018
1 parent 8547489 commit 996da72
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions homeassistant/components/climate/daikin.py
Expand Up @@ -105,16 +105,10 @@ def __init__(self, api):
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."""
Expand Down

0 comments on commit 996da72

Please sign in to comment.