Kaynağa Gözat

Fix not syntax

Python has to be different
Jason Rumney 5 yıl önce
ebeveyn
işleme
8770fa5e58

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

@@ -53,7 +53,7 @@ class GoldairDehumidifierLedDisplayLight(LightEntity):
     @property
     @property
     def is_on(self):
     def is_on(self):
         """Return the current state."""
         """Return the current state."""
-        return !self._device.get_property(PROPERTY_TO_DPS_ID[ATTR_DISPLAY_OFF])
+        return not(self._device.get_property(PROPERTY_TO_DPS_ID[ATTR_DISPLAY_OFF]))
 
 
     async def async_turn_on(self):
     async def async_turn_on(self):
         await self._device.async_set_property(PROPERTY_TO_DPS_ID[ATTR_DISPLAY_OFF], False)
         await self._device.async_set_property(PROPERTY_TO_DPS_ID[ATTR_DISPLAY_OFF], False)