Add support for Daikin BRP069B41 (#18564)

* Add support for BRP069B41, fixes #18563

* Use fan_mode and swing_mode from pydaikin 0.8
This commit is contained in:
Fredrik Erlandsson 2018-11-20 14:14:11 +01:00 committed by Martin Hjelmare
parent 0ddd502d00
commit 3838be4cb8
3 changed files with 5 additions and 7 deletions

View File

@ -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.7'] REQUIREMENTS = ['pydaikin==0.8']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -101,12 +101,10 @@ class DaikinClimate(ClimateDevice):
self._supported_features = SUPPORT_TARGET_TEMPERATURE \ self._supported_features = SUPPORT_TARGET_TEMPERATURE \
| SUPPORT_OPERATION_MODE | SUPPORT_OPERATION_MODE
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_FAN_MODE] if self._api.device.support_fan_mode:
if self._api.device.values.get(daikin_attr) is not None:
self._supported_features |= SUPPORT_FAN_MODE self._supported_features |= SUPPORT_FAN_MODE
daikin_attr = HA_ATTR_TO_DAIKIN[ATTR_SWING_MODE] if self._api.device.support_swing_mode:
if self._api.device.values.get(daikin_attr) is not None:
self._supported_features |= SUPPORT_SWING_MODE self._supported_features |= SUPPORT_SWING_MODE
def get(self, key): def get(self, key):

View File

@ -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.7'] REQUIREMENTS = ['pydaikin==0.8']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -886,7 +886,7 @@ pycsspeechtts==1.0.2
# homeassistant.components.daikin # homeassistant.components.daikin
# homeassistant.components.climate.daikin # homeassistant.components.climate.daikin
pydaikin==0.7 pydaikin==0.8
# homeassistant.components.deconz # homeassistant.components.deconz
pydeconz==47 pydeconz==47