Conversation
This PR depends on an accompanying PR in the open_meteo package: frenck/python-open-meteo#1042 To keep this PR small it currently only adds state attributes to the weather entity. Future PRs can add support for those attributes to the forecast service (though the air quality api only supports hourly data, so we would have to calculate the daily data ourselfes based on that) and provide further air quality metrics not supported by weather entities (such as pollen) as sensor entities.
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
Not stale. Waiting for review. |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
Not stale. Waiting for review. |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
Not stale. Waiting for review. |
There was a problem hiding this comment.
Pull Request Overview
Adds support for the Open-Meteo Air Quality API by implementing air quality data models and client methods. This extends the existing weather API client to include air quality measurements like particulate matter, gases, pollen, and AQI values.
- Implements comprehensive air quality parameter enums and data models
- Adds air_quality method to OpenMeteo client class
- Provides example usage demonstrating the new air quality functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/open_meteo/open_meteo.py | Adds air_quality method and imports for air quality functionality |
| src/open_meteo/models.py | Defines air quality parameters enum and data models for current/hourly air quality data |
| src/open_meteo/init.py | Exports new air quality classes in public API |
| examples/air_quality.py | Provides example usage of the air quality API |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Proposed Changes
Add support for the air quality api endpoint
Related Issues
Home Assistant PR: home-assistant/core#146204