diff --git a/custom_components/fullykiosk/light.py b/custom_components/fullykiosk/light.py index 856dc38..695b579 100644 --- a/custom_components/fullykiosk/light.py +++ b/custom_components/fullykiosk/light.py @@ -61,9 +61,9 @@ def unique_id(self): def turn_on(self, **kwargs): self.controller.screenOn() brightness = kwargs.get(ATTR_BRIGHTNESS) - if brightness == None: + if brightness is None: return - if brightness != self._brightness: + if brightness != self.coordinator.data["screenBrightness"]: self.controller.setScreenBrightness(brightness) def turn_off(self, **kwargs):