mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Update sensehat.py
This commit is contained in:
parent
3ee4d1060f
commit
85b7433bc4
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user