Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes AirVisual bug regarding incorrect location data #10054
Related issue (if applicable): fixes #9923
Pull request in home-assistant.github.io with documentation (if applicable): N/A
Example entry for
@MartinHjelmare It was an odd bug; long story short, it affected users who used coordinates to pull air quality data. After successfully retrieving the data, city/state/country properties would get set; then, every API call thereafter would use those attributes, rather than the coordinates. The AirVisual API seems to fail for some city/state/country attributes, even though it succeeds using the coordinates.
This PR makes it so that the original lookup "form" – coordinates or city/state/country attributes – are consistent for each API call.