mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
fixes for last version bump on pydaikin (#18438)
This commit is contained in:
parent
d2e102ee2f
commit
0d43cb6d0e
@ -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.6']
|
REQUIREMENTS = ['pydaikin==0.7']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -82,7 +82,6 @@ class DaikinClimate(ClimateDevice):
|
|||||||
from pydaikin import appliance
|
from pydaikin import appliance
|
||||||
|
|
||||||
self._api = api
|
self._api = api
|
||||||
self._force_refresh = False
|
|
||||||
self._list = {
|
self._list = {
|
||||||
ATTR_OPERATION_MODE: list(HA_STATE_TO_DAIKIN),
|
ATTR_OPERATION_MODE: list(HA_STATE_TO_DAIKIN),
|
||||||
ATTR_FAN_MODE: list(
|
ATTR_FAN_MODE: list(
|
||||||
@ -183,7 +182,6 @@ class DaikinClimate(ClimateDevice):
|
|||||||
_LOGGER.error("Invalid temperature %s", value)
|
_LOGGER.error("Invalid temperature %s", value)
|
||||||
|
|
||||||
if values:
|
if values:
|
||||||
self._force_refresh = True
|
|
||||||
self._api.device.set(values)
|
self._api.device.set(values)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -264,5 +262,4 @@ class DaikinClimate(ClimateDevice):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Retrieve latest state."""
|
"""Retrieve latest state."""
|
||||||
self._api.update(no_throttle=self._force_refresh)
|
self._api.update()
|
||||||
self._force_refresh = False
|
|
||||||
|
@ -19,7 +19,7 @@ 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.6']
|
REQUIREMENTS = ['pydaikin==0.7']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -880,7 +880,7 @@ pycsspeechtts==1.0.2
|
|||||||
|
|
||||||
# homeassistant.components.daikin
|
# homeassistant.components.daikin
|
||||||
# homeassistant.components.climate.daikin
|
# homeassistant.components.climate.daikin
|
||||||
pydaikin==0.6
|
pydaikin==0.7
|
||||||
|
|
||||||
# homeassistant.components.deconz
|
# homeassistant.components.deconz
|
||||||
pydeconz==47
|
pydeconz==47
|
||||||
|
Loading…
x
Reference in New Issue
Block a user