Remove unnecessary should poll from light classes (#41229)

pull/41249/head
springstan 2020-10-04 23:28:25 +02:00 committed by GitHub
parent b1ff69d9a3
commit 6102d05306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 20 deletions

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""

View File

@ -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."""