Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AC): support current_humidity for AC device climate #411

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions custom_components/midea_ac_lan/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ def swing_mode(self) -> str:
) + (2 if self._device.get_attribute(ACAttributes.swing_horizontal) else 0)
return self._attr_swing_modes[swing_mode]

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

@property
def outdoor_temperature(self) -> float:
"""Midea AC Climate outdoor temperature."""
Expand Down
Loading