Update sensehat.py

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-04-29 22:42:12 -07:00
1 parent 3ee4d1060f
commit 85b7433bc4
1 file changed
+2 -2
+2 -2
View File
@@ -86,12 +86,12 @@ class SenseHatLight(Light):
def should_poll(self):
"""Return if we should poll this device."""
return False
@property
def assumed_state(self) -> bool:
"""Return True if unable to access real state of the entity."""
return True
def turn_on(self, **kwargs):
"""Instruct the light to turn on and set correct brightness & color."""
self._brightness = kwargs.get(ATTR_BRIGHTNESS, 255)