Просмотр исходного кода

Fix variable name

Because of reversed logic compared to upstream, the merged change
needed to use a different name as well as logic.
Jason Rumney 5 лет назад
Родитель
Сommit
bd8064c7d0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/dehumidifier/light.py

+ 1 - 1
custom_components/tuya_local/dehumidifier/light.py

@@ -73,7 +73,7 @@ class GoldairDehumidifierLedDisplayLight(LightEntity):
 
         if dps_hvac_mode != HVAC_MODE_TO_DPS_MODE[HVAC_MODE_OFF]:
             await (
-                self.async_turn_on() if not dps_display_on else self.async_turn_off()
+                self.async_turn_on() if dps_display_off else self.async_turn_off()
             )
 
     async def async_update(self):