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

This commit is contained in:
Lewis Juggins authored and Paulus Schoutsen committed 2018-04-01 07:50:48 -07:00
1 parent a8fdd76f44
commit 0c0e0c36af
1 file changed
+4 -5
+4 -5
View File
@@ -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."""