From eecb4a4fcb71a7170a395062f9b1aa8566825a16 Mon Sep 17 00:00:00 2001 From: dschido <46257754+dschido@users.noreply.github.com> Date: Fri, 29 Dec 2023 14:24:49 +0100 Subject: [PATCH] Update humidifier.py add new attribute current_humidity --- custom_components/midea_dehumidifier_lan/humidifier.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/midea_dehumidifier_lan/humidifier.py b/custom_components/midea_dehumidifier_lan/humidifier.py index b87c8f9..7c07881 100644 --- a/custom_components/midea_dehumidifier_lan/humidifier.py +++ b/custom_components/midea_dehumidifier_lan/humidifier.py @@ -100,6 +100,7 @@ def on_update(self) -> None: dehumi = self.dehumidifier() self._attr_mode = next((i[1] for i in _MODES if i[0] == dehumi.mode), MODE_SET) self._attr_target_humidity = dehumi.target_humidity + self._attr_current_humidity = dehumi.current_humidity # add new attribute current_humidity self._attr_is_on = dehumi.running super().on_update()