Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reverse out change #14234 BOM Weather throttle fix #17468
Re-raising #16660 (comment) with feedback changes
@nickw444 made the change in PR #14234 to throttle every 35 minutes but this causes the time the sensor is read to be decoupled from the time of the actual reading becoming available in the JSON file.
The readings get more and more 'late' until they flick over back to being reasonable then creep out again. The original logic kept it locked to the last reading time + 35 mins which is when we'd expect a new reading in or soon after.
This change takes the latest code base and puts back the previous logic that kept the sensor readings in sync with the new data coming in.
It also tidies a comment by removing the word iterating where it had been used twice.
Related issue (if applicable): reverts #14234
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for