Skip to content

Commit

Permalink
Merge PR georgezhao2010#486 from rokam/remove_auxheat
Browse files Browse the repository at this point in the history
# Conflicts:
#	custom_components/midea_ac_lan/climate.py
  • Loading branch information
Necroneco committed Apr 6, 2024
2 parents fe2608d + a33371d commit 6f0d863
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
15 changes: 2 additions & 13 deletions custom_components/midea_ac_lan/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def supported_features(self):
ClimateEntityFeature.TARGET_TEMPERATURE |
ClimateEntityFeature.FAN_MODE |
ClimateEntityFeature.PRESET_MODE |
ClimateEntityFeature.SWING_MODE |
ClimateEntityFeature.AUX_HEAT
ClimateEntityFeature.SWING_MODE
)
if (MAJOR_VERSION, MINOR_VERSION) >= (2024, 2):
features |= ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
Expand Down Expand Up @@ -144,10 +143,6 @@ def target_temperature(self):
def current_temperature(self):
return self._device.get_attribute("indoor_temperature")

@property
def is_aux_heat(self):
return self._device.get_attribute("aux_heating")

@property
def preset_modes(self):
return self._preset_modes
Expand Down Expand Up @@ -230,12 +225,6 @@ def update_state(self, status):
except Exception as e:
_LOGGER.debug(f"Entity {self.entity_id} update_state {repr(e)}, status = {status}")

def turn_aux_heat_on(self) -> None:
self._device.set_attribute(attr="aux_heating", value=True)

def turn_aux_heat_off(self) -> None:
self._device.set_attribute(attr="aux_heating", value=False)


class MideaACClimate(MideaClimate):
def __init__(self, device, entity_key):
Expand Down Expand Up @@ -346,7 +335,7 @@ def __init__(self, device, entity_key):

@property
def supported_features(self):
features = ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.AUX_HEAT
features = ClimateEntityFeature.TARGET_TEMPERATURE
if (MAJOR_VERSION, MINOR_VERSION) >= (2024, 2):
features |= ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
return features
Expand Down
1 change: 0 additions & 1 deletion doc/AC.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- Supports fan mode
- Supports swing mode
- Supports preset mode
- Supports auxiliary heating
- Supports build-in fresh air system

### Supported Run-Modes
Expand Down
1 change: 0 additions & 1 deletion doc/AC_hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 支持风扇模式设定
- 支持摆风模式设定
- 支持预设模式设定
- 支持电辅热
- 支持内置新风系统

### 支持的模式
Expand Down

0 comments on commit 6f0d863

Please sign in to comment.