Skip to content

Commit

Permalink
Support current_humidity for climate
Browse files Browse the repository at this point in the history
  • Loading branch information
semyonchetvertnyh authored Dec 7, 2024
1 parent 406ab58 commit af14b1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/midea_ac_lan/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def current_temperature(self) -> float | None:
"""Midea Climate current temperature."""
return cast(float | None, self._device.get_attribute("indoor_temperature"))

@property
def current_humidity(self) -> float | None:
return cast(float, self._device.get_attribute("indoor_humidity"))

@property
def preset_mode(self) -> str:
"""Midea Climate preset mode."""
Expand Down

0 comments on commit af14b1b

Please sign in to comment.