From c6683cba7d7541be41c8ba4efc408a2452b7bca7 Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Mon, 12 Nov 2018 22:53:50 +0100 Subject: [PATCH] updated pydaikin version (#18413) --- homeassistant/components/climate/daikin.py | 2 +- homeassistant/components/daikin.py | 8 ++------ requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/climate/daikin.py b/homeassistant/components/climate/daikin.py index 2d4e01aaee9..63b8f585c7e 100644 --- a/homeassistant/components/climate/daikin.py +++ b/homeassistant/components/climate/daikin.py @@ -22,7 +22,7 @@ from homeassistant.const import ( 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__) diff --git a/homeassistant/components/daikin.py b/homeassistant/components/daikin.py index 8983ecf82d8..20da244a698 100644 --- a/homeassistant/components/daikin.py +++ b/homeassistant/components/daikin.py @@ -19,12 +19,11 @@ from homeassistant.helpers import discovery 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 @@ class DaikinApi: 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 e7ce9028540..b2600027d91 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