fix: Fix for Missing Temperature Readings and also a fix for pytest runs and for video streaming #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not sure how data was returned in the past, but it appears that Canary has changed the number of records returned by Readings API URL or changed the sort order, but on April 30th, 2022 the temperature readings were no longer returned from the get_readings function.
Manually calling the API calls in PAW showed that the readings API call returns 20 records, with the first 12 being air_quality, the next 8 being humidity. Changing the created__range to 1 hour at 10 minute intervals returns 19 records( 1-6 being air quality, 7-12 humidity, 13-18 temperature and 19 being wifi) with all records listed in descending time.
Also fixed is running pytest after Katie made changes for fixing Live Streaming.
Home Assistant issue thread
Temperature is no longer being returned in the get_readings / get_latest_readings call