Update sensehat.py
This commit is contained in:
1 parent
cf664e42cc
commit
e22e70a01a
1 file changed
+2
-2
@@ -105,10 +105,10 @@ class SenseHatLight(Light):
|
||||
int(self._rgb_color[2] * percent_bright))
|
||||
|
||||
self._is_on = True
|
||||
this.schedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Instruct the light to turn off."""
|
||||
self._sensehat.clear()
|
||||
self._is_on = False
|
||||
this.schedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
Reference in new issue
Block a user