We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2416ce1 commit a9f5ecaCopy full SHA for a9f5eca
1 file changed
crownstone_cloud/lib/cloudModels/locations.py
@@ -61,6 +61,10 @@ async def async_update_location_presence(self) -> None:
61
presence_data = await RequestHandler.get(
62
'Spheres', 'presentPeople', model_id=self.sphere_id
63
)
64
+ # reset the presence
65
+ for location in self.locations.values():
66
+ location.present_people = []
67
+ # add new presence
68
for presence in presence_data:
69
for present_location in presence['locations']:
70
for location in self.locations.values():
0 commit comments