Skip to content
Snippets Groups Projects
Commit 0c0e0c36 authored by Lewis Juggins's avatar Lewis Juggins Committed by Paulus Schoutsen
Browse files

Re-add group polling as a fallback for observation (#13613)

parent a8fdd76f
No related branches found
No related tags found
No related merge requests found
......@@ -76,11 +76,6 @@ class TradfriGroup(Light):
"""Return unique ID for this group."""
return self._unique_id
@property
def should_poll(self):
"""No polling needed for tradfri group."""
return False
@property
def supported_features(self):
"""Flag supported features."""
......@@ -149,6 +144,10 @@ class TradfriGroup(Light):
self._refresh(tradfri_device)
self.async_schedule_update_ha_state()
async def async_update(self):
"""Fetch new state data for the group."""
await self._group.update()
class TradfriLight(Light):
"""The platform class required by Home Assistant."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment