updated pydaikin version (#18413)
This commit is contained in:
parent
ea4480f170
commit
c6683cba7d
3 changed files with 4 additions and 8 deletions
|
@ -22,7 +22,7 @@ from homeassistant.const import (
|
||||||
ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS)
|
ATTR_TEMPERATURE, CONF_HOST, CONF_NAME, TEMP_CELSIUS)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['pydaikin==0.4']
|
REQUIREMENTS = ['pydaikin==0.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,11 @@ from homeassistant.helpers import discovery
|
||||||
from homeassistant.helpers.discovery import load_platform
|
from homeassistant.helpers.discovery import load_platform
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
REQUIREMENTS = ['pydaikin==0.4']
|
REQUIREMENTS = ['pydaikin==0.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
DOMAIN = 'daikin'
|
DOMAIN = 'daikin'
|
||||||
HTTP_RESOURCES = ['aircon/get_sensor_info', 'aircon/get_control_info']
|
|
||||||
|
|
||||||
ATTR_TARGET_TEMPERATURE = 'target_temperature'
|
ATTR_TARGET_TEMPERATURE = 'target_temperature'
|
||||||
ATTR_INSIDE_TEMPERATURE = 'inside_temperature'
|
ATTR_INSIDE_TEMPERATURE = 'inside_temperature'
|
||||||
|
@ -128,10 +127,7 @@ class DaikinApi:
|
||||||
def update(self, **kwargs):
|
def update(self, **kwargs):
|
||||||
"""Pull the latest data from Daikin."""
|
"""Pull the latest data from Daikin."""
|
||||||
try:
|
try:
|
||||||
for resource in HTTP_RESOURCES:
|
self.device.update_status()
|
||||||
self.device.values.update(
|
|
||||||
self.device.get_resource(resource)
|
|
||||||
)
|
|
||||||
except timeout:
|
except timeout:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Connection failed for %s", self.ip_address
|
"Connection failed for %s", self.ip_address
|
||||||
|
|
|
@ -880,7 +880,7 @@ pycsspeechtts==1.0.2
|
||||||
|
|
||||||
# homeassistant.components.daikin
|
# homeassistant.components.daikin
|
||||||
# homeassistant.components.climate.daikin
|
# homeassistant.components.climate.daikin
|
||||||
pydaikin==0.4
|
pydaikin==0.6
|
||||||
|
|
||||||
# homeassistant.components.deconz
|
# homeassistant.components.deconz
|
||||||
pydeconz==47
|
pydeconz==47
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue