mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Daikin adaptions for AirBase units (#23734)
* updated list of supported fan_modes * AirBase units does not support Holiday-mode * AirBase units does not support outside temp * pydaikin version bump * don't modify constant
This commit is contained in:
parent
1a051f038d
commit
0ffcc197d4
@ -81,12 +81,7 @@ class DaikinClimate(ClimateDevice):
|
|||||||
self._api = api
|
self._api = api
|
||||||
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: self._api.device.fan_modes,
|
||||||
map(
|
|
||||||
str.title,
|
|
||||||
appliance.daikin_values(HA_ATTR_TO_DAIKIN[ATTR_FAN_MODE])
|
|
||||||
)
|
|
||||||
),
|
|
||||||
ATTR_SWING_MODE: list(
|
ATTR_SWING_MODE: list(
|
||||||
map(
|
map(
|
||||||
str.title,
|
str.title,
|
||||||
@ -95,10 +90,13 @@ class DaikinClimate(ClimateDevice):
|
|||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
self._supported_features = (SUPPORT_AWAY_MODE | SUPPORT_ON_OFF
|
self._supported_features = (SUPPORT_ON_OFF
|
||||||
| SUPPORT_OPERATION_MODE
|
| SUPPORT_OPERATION_MODE
|
||||||
| SUPPORT_TARGET_TEMPERATURE)
|
| SUPPORT_TARGET_TEMPERATURE)
|
||||||
|
|
||||||
|
if self._api.device.support_away_mode:
|
||||||
|
self._supported_features |= SUPPORT_AWAY_MODE
|
||||||
|
|
||||||
if self._api.device.support_fan_mode:
|
if self._api.device.support_fan_mode:
|
||||||
self._supported_features |= SUPPORT_FAN_MODE
|
self._supported_features |= SUPPORT_FAN_MODE
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/daikin",
|
"documentation": "https://www.home-assistant.io/components/daikin",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pydaikin==1.4.0"
|
"pydaikin==1.4.3"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
@ -26,9 +26,12 @@ async def async_setup_platform(
|
|||||||
async def async_setup_entry(hass, entry, async_add_entities):
|
async def async_setup_entry(hass, entry, async_add_entities):
|
||||||
"""Set up Daikin climate based on config_entry."""
|
"""Set up Daikin climate based on config_entry."""
|
||||||
daikin_api = hass.data[DAIKIN_DOMAIN].get(entry.entry_id)
|
daikin_api = hass.data[DAIKIN_DOMAIN].get(entry.entry_id)
|
||||||
|
sensors = [ATTR_INSIDE_TEMPERATURE]
|
||||||
|
if daikin_api.device.support_outside_temperature:
|
||||||
|
sensors.append(ATTR_OUTSIDE_TEMPERATURE)
|
||||||
async_add_entities([
|
async_add_entities([
|
||||||
DaikinClimateSensor(daikin_api, sensor, hass.config.units)
|
DaikinClimateSensor(daikin_api, sensor, hass.config.units)
|
||||||
for sensor in SENSOR_TYPES
|
for sensor in sensors
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
@ -1021,7 +1021,7 @@ pycsspeechtts==1.0.2
|
|||||||
# pycups==1.9.73
|
# pycups==1.9.73
|
||||||
|
|
||||||
# homeassistant.components.daikin
|
# homeassistant.components.daikin
|
||||||
pydaikin==1.4.0
|
pydaikin==1.4.3
|
||||||
|
|
||||||
# homeassistant.components.danfoss_air
|
# homeassistant.components.danfoss_air
|
||||||
pydanfossair==0.1.0
|
pydanfossair==0.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user