mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Update sensehat.py
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user