Преглед на файлове

Change icon conditions for humidifier

Icons and condition were copy and paste from climate, but incorrect for
humidifier.
Jason Rumney преди 5 години
родител
ревизия
a451cbdaf5
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      custom_components/tuya_local/generic/humidifier.py

+ 3 - 3
custom_components/tuya_local/generic/humidifier.py

@@ -91,10 +91,10 @@ class TuyaLocalHumidifier(HumidifierEntity):
     @property
     def icon(self):
         """Return the icon to use in the frontend for this device."""
-        if self.hvac_mode == HVAC_MODE_HEAT:
-            return "mdi:radiator"
+        if self.is_on:
+            return "mdi:air-humidifier"
         else:
-            return "mdi:radiator-disabled"
+            return "mdi:air-humidifier-off"
 
     @property
     def is_on(self):