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

pull/13617/head
Lewis Juggins 2018-04-01 15:50:48 +01:00 committed by Paulus Schoutsen
parent a8fdd76f44
commit 0c0e0c36af
1 changed files with 4 additions and 5 deletions

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