Skip to content

Commit

Permalink
Remove unnecessary should poll from light classes (home-assistant#41229)
Browse files Browse the repository at this point in the history
  • Loading branch information
springstan authored Oct 4, 2020
1 parent b1ff69d commit 6102d05
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions homeassistant/components/blinksticklight/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ def __init__(self, stick, name):
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."""
Expand Down
5 changes: 0 additions & 5 deletions homeassistant/components/decora/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ def supported_features(self):
"""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."""
Expand Down
5 changes: 0 additions & 5 deletions homeassistant/components/xiaomi_miio/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,6 @@ def __init__(self, name, light, model, unique_id):
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."""
Expand Down
5 changes: 0 additions & 5 deletions homeassistant/components/zengge/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ def supported_features(self):
"""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."""
Expand Down

0 comments on commit 6102d05

Please sign in to comment.