diff --git a/homeassistant/components/climate/daikin.py b/homeassistant/components/climate/daikin.py index 2d4e01aaee9f90..ab524dc389da3a 100644 --- a/homeassistant/components/climate/daikin.py +++ b/homeassistant/components/climate/daikin.py @@ -22,7 +22,7 @@ ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS) import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['pydaikin==0.4'] +REQUIREMENTS = ['pydaikin==0.6'] _LOGGER = logging.getLogger(__name__) @@ -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.""" diff --git a/homeassistant/components/daikin.py b/homeassistant/components/daikin.py index 8983ecf82d8249..20da244a698e79 100644 --- a/homeassistant/components/daikin.py +++ b/homeassistant/components/daikin.py @@ -19,12 +19,11 @@ from homeassistant.helpers.discovery import load_platform from homeassistant.util import Throttle -REQUIREMENTS = ['pydaikin==0.4'] +REQUIREMENTS = ['pydaikin==0.6'] _LOGGER = logging.getLogger(__name__) DOMAIN = 'daikin' -HTTP_RESOURCES = ['aircon/get_sensor_info', 'aircon/get_control_info'] ATTR_TARGET_TEMPERATURE = 'target_temperature' ATTR_INSIDE_TEMPERATURE = 'inside_temperature' @@ -128,10 +127,7 @@ def __init__(self, device, name): def update(self, **kwargs): """Pull the latest data from Daikin.""" try: - for resource in HTTP_RESOURCES: - self.device.values.update( - self.device.get_resource(resource) - ) + self.device.update_status() except timeout: _LOGGER.warning( "Connection failed for %s", self.ip_address diff --git a/requirements_all.txt b/requirements_all.txt index e7ce9028540a0b..b2600027d91703 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -880,7 +880,7 @@ pycsspeechtts==1.0.2 # homeassistant.components.daikin # homeassistant.components.climate.daikin -pydaikin==0.4 +pydaikin==0.6 # homeassistant.components.deconz pydeconz==47