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:
1 parent
1a051f038d
commit
0ffcc197d4
4 files changed
+11
-10
No files matched your search
@@ -26,9 +26,12 @@ async def async_setup_platform(
|
||||
async def async_setup_entry(hass, entry, async_add_entities):
|
||||
"""Set up Daikin climate based on config_entry."""
|
||||
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([
|
||||
DaikinClimateSensor(daikin_api, sensor, hass.config.units)
|
||||
for sensor in SENSOR_TYPES
|
||||
for sensor in sensors
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user