From af14b1b1d6916bb99aa1229e3fbd749424b082e4 Mon Sep 17 00:00:00 2001 From: Semyon Chetvertnyh Date: Sat, 7 Dec 2024 23:04:00 +0100 Subject: [PATCH] Support `current_humidity` for `climate` --- custom_components/midea_ac_lan/climate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/midea_ac_lan/climate.py b/custom_components/midea_ac_lan/climate.py index b52d410..716fee5 100644 --- a/custom_components/midea_ac_lan/climate.py +++ b/custom_components/midea_ac_lan/climate.py @@ -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."""