Remove unnecessary should poll from light classes (#41229)
parent
b1ff69d9a3
commit
6102d05306
|
@ -54,11 +54,6 @@ class BlinkStickLight(LightEntity):
|
|||
self._hs_color = None
|
||||
self._brightness = None
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Set up polling."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the light."""
|
||||
|
|
|
@ -125,11 +125,6 @@ class DecoraLight(LightEntity):
|
|||
"""Flag supported features."""
|
||||
return SUPPORT_DECORA_LED
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""We can read the device state, so poll."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def assumed_state(self):
|
||||
"""We can read the actual state."""
|
||||
|
|
|
@ -278,11 +278,6 @@ class XiaomiPhilipsAbstractLight(LightEntity):
|
|||
self._state = None
|
||||
self._state_attrs = {ATTR_MODEL: self._model}
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Poll the light."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return an unique ID."""
|
||||
|
|
|
@ -97,11 +97,6 @@ class ZenggeLight(LightEntity):
|
|||
"""Flag supported features."""
|
||||
return SUPPORT_ZENGGE_LED
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Feel free to poll."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def assumed_state(self):
|
||||
"""We can report the actual state."""
|
||||
|
|
Loading…
Reference in New Issue