Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Mar 2, 2024
1 parent 72b8c94 commit b6e5c93
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,13 @@ async def get_info(self):
"""
Wrapper method to authenticate, fetch users, and get measurements.
"""
await self.get_scale_users()
return await self.get_measurements()
asyncio.gather(
self.auth(),
self.get_scale_users(),
self.get_measurements()
)

return self.weight

async def start_polling(self, refresh=0):
"""
Expand Down

0 comments on commit b6e5c93

Please sign in to comment.