fixes for last version bump on pydaikin (#18438)
This commit is contained in:
parent
d2e102ee2f
commit
0d43cb6d0e
3 changed files with 4 additions and 7 deletions
|
@ -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.6']
|
||||
REQUIREMENTS = ['pydaikin==0.7']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -82,7 +82,6 @@ class DaikinClimate(ClimateDevice):
|
|||
from pydaikin import appliance
|
||||
|
||||
self._api = api
|
||||
self._force_refresh = False
|
||||
self._list = {
|
||||
ATTR_OPERATION_MODE: list(HA_STATE_TO_DAIKIN),
|
||||
ATTR_FAN_MODE: list(
|
||||
|
@ -183,7 +182,6 @@ class DaikinClimate(ClimateDevice):
|
|||
_LOGGER.error("Invalid temperature %s", value)
|
||||
|
||||
if values:
|
||||
self._force_refresh = True
|
||||
self._api.device.set(values)
|
||||
|
||||
@property
|
||||
|
@ -264,5 +262,4 @@ class DaikinClimate(ClimateDevice):
|
|||
|
||||
def update(self):
|
||||
"""Retrieve latest state."""
|
||||
self._api.update(no_throttle=self._force_refresh)
|
||||
self._force_refresh = False
|
||||
self._api.update()
|
||||
|
|
|
@ -19,7 +19,7 @@ from homeassistant.helpers import discovery
|
|||
from homeassistant.helpers.discovery import load_platform
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
REQUIREMENTS = ['pydaikin==0.6']
|
||||
REQUIREMENTS = ['pydaikin==0.7']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -880,7 +880,7 @@ pycsspeechtts==1.0.2
|
|||
|
||||
# homeassistant.components.daikin
|
||||
# homeassistant.components.climate.daikin
|
||||
pydaikin==0.6
|
||||
pydaikin==0.7
|
||||
|
||||
# homeassistant.components.deconz
|
||||
pydeconz==47
|
||||
|
|
Loading…
Add table
Reference in a new issue