Skip to content

Commit

Permalink
🔥 improve for climate (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Apr 10, 2024
1 parent 0981e50 commit 1b3e9f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions custom_components/xiaomi_miot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def __init__(self, config: dict, miot_service: MiotService):
self._supported_features |= ClimateEntityFeature.FAN_MODE
if self._prop_horizontal_swing or self._prop_vertical_swing:
self._supported_features |= ClimateEntityFeature.SWING_MODE
if self._prop_heater and miot_service.name in ['air_conditioner', 'air_condition_outlet']:
self._supported_features |= ClimateEntityFeature.AUX_HEAT

self._power_modes = []
if miot_service.get_property('heat_level'):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@

'*.aircondition.*': {
'sensor_properties': 'electricity.electricity',
'switch_properties': 'air_conditioner.on,alarm.alarm',
'switch_properties': 'air_conditioner.on,alarm.alarm,heater',
'fan_services': 'air_fresh',
},
'*.airer.*': {
Expand Down

0 comments on commit 1b3e9f3

Please sign in to comment.