mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Remove unnecessary should poll from light classes (#41229)
This commit is contained in:
parent
b1ff69d9a3
commit
6102d05306
@ -54,11 +54,6 @@ class BlinkStickLight(LightEntity):
|
|||||||
self._hs_color = None
|
self._hs_color = None
|
||||||
self._brightness = None
|
self._brightness = None
|
||||||
|
|
||||||
@property
|
|
||||||
def should_poll(self):
|
|
||||||
"""Set up polling."""
|
|
||||||
return True
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the light."""
|
"""Return the name of the light."""
|
||||||
|
@ -125,11 +125,6 @@ class DecoraLight(LightEntity):
|
|||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
return SUPPORT_DECORA_LED
|
return SUPPORT_DECORA_LED
|
||||||
|
|
||||||
@property
|
|
||||||
def should_poll(self):
|
|
||||||
"""We can read the device state, so poll."""
|
|
||||||
return True
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def assumed_state(self):
|
def assumed_state(self):
|
||||||
"""We can read the actual state."""
|
"""We can read the actual state."""
|
||||||
|
@ -278,11 +278,6 @@ class XiaomiPhilipsAbstractLight(LightEntity):
|
|||||||
self._state = None
|
self._state = None
|
||||||
self._state_attrs = {ATTR_MODEL: self._model}
|
self._state_attrs = {ATTR_MODEL: self._model}
|
||||||
|
|
||||||
@property
|
|
||||||
def should_poll(self):
|
|
||||||
"""Poll the light."""
|
|
||||||
return True
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return an unique ID."""
|
"""Return an unique ID."""
|
||||||
|
@ -97,11 +97,6 @@ class ZenggeLight(LightEntity):
|
|||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
return SUPPORT_ZENGGE_LED
|
return SUPPORT_ZENGGE_LED
|
||||||
|
|
||||||
@property
|
|
||||||
def should_poll(self):
|
|
||||||
"""Feel free to poll."""
|
|
||||||
return True
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def assumed_state(self):
|
def assumed_state(self):
|
||||||
"""We can report the actual state."""
|
"""We can report the actual state."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user