mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Update sensehat.py
This commit is contained in:
parent
cf664e42cc
commit
e22e70a01a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user