Update sensehat.py

This commit is contained in:
Paulus Schoutsen 2017-04-29 22:42:12 -07:00 committed by GitHub
parent 3ee4d1060f
commit 85b7433bc4

View File

@ -86,12 +86,12 @@ class SenseHatLight(Light):
def should_poll(self): def should_poll(self):
"""Return if we should poll this device.""" """Return if we should poll this device."""
return False return False
@property @property
def assumed_state(self) -> bool: def assumed_state(self) -> bool:
"""Return True if unable to access real state of the entity.""" """Return True if unable to access real state of the entity."""
return True return True
def turn_on(self, **kwargs): def turn_on(self, **kwargs):
"""Instruct the light to turn on and set correct brightness & color.""" """Instruct the light to turn on and set correct brightness & color."""
self._brightness = kwargs.get(ATTR_BRIGHTNESS, 255) self._brightness = kwargs.get(ATTR_BRIGHTNESS, 255)