Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Fix setting screen brightness (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarwood authored Jul 14, 2020
1 parent e4f299c commit ebcd65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/fullykiosk/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ebcd65d

Please sign in to comment.