updated pydaikin version (#18413)

This commit is contained in:
Fredrik Erlandsson 2018-11-12 22:53:50 +01:00 committed by Fabian Affolter
parent ea4480f170
commit c6683cba7d
3 changed files with 4 additions and 8 deletions

View file

@ -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