Closed nitobuendia closed 1 year ago
What seems to be happening is that the WORKOUTS endpoint is returning no data:
2023-01-28 21:35:08.357 ERROR (SyncWorker_2) [root] {'data': [], 'next_token': None}
When that happens, self._update
terminates early and does not finish setting up the sensor even with the empty default values.
This should be fixed now. You will probably get a sensor with "unknown" as the state. However, the attributes should be present for the monitored days. If all the days and values are null, that means that you do not have workouts data for those specific days - which I think it's what was triggering this error.
Looking good now, thanks for this @nitobuendia !
Originally posted by @akeslo in https://github.com/nitobuendia/oura-custom-component/issues/29#issuecomment-1406583778