Bonjour à tous,
Après avoir fait quelques recherches sur le fait que l’on ne peut pas avoir en même temps les prévisions journalières et horaires pour une même ville, je suis arrivé sur le ticket de @Clemalex sur le github hacf : Météo-France : Prévisions Journalières et horaires · Issue #45 · hacf-fr/home-assistant-core · GitHub .
Le ticket semble avoir été fermé pour cause d’inactivité, tout comme la PR associée dans le github de HA qui semblait être a un stade assez avancé de développement : Create daily and hourly forecast meteo_france weather entities by oncleben31 · Pull Request #44422 · home-assistant/core · GitHub .
La fonctionnalité me paraissait intéressante, mais y-a-t’il une raison que je n’ai pas vu qui fait qu’elle a été abandonnée ?
Si besoin, je peux aussi apporter mon aide pour la terminer.
Oui j’ai laissé pourrir faute de temps. Comme je n’ai pas pris en compte les remarques ça été clos automatiquement.
Il faudrait la refaire.
Il manquait l’ajout de tests pour la migration de configuration.
@Guigeek si tu es motivé vas y je peux rester en support.
Bonjour,
Avez-vous également des problème d'icônes qui ne sont pas adéquates ? Une solution ? Merci
Guigeek
Septembre 15, 2023, 10:50
6
Problème initial corrigé avec la version 2023.9.0 de Home Assistant.
dev ← meteofrance_modern_forecast
ouvert 08:35AM - 08 Aug 23 UTC
## Breaking change
The Météo-France weather entities have been updated:
- Th… e `forecast` state attribute is deprecated and will be removed in Home Assistant Core 2024.3, users should instead call the service `weather.get_forecast`
- The config entry option to select hourly or daily forecast can no longer be adjusted, but any existing configuration of the forecast period will be respected until Home Assistant Core 2024.3. Météo-France now provides a single weather entity which supports both hourly and daily forecast.
## Proposed change
Modernize Météo-France weather:
- Add support for the `weather.get_forecast` service
- Add support for daily and hourly weather forecasts
- Remove options flow which allowed selecting hourly or daily weather forecasts
## Type of change
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Deprecation (breaking change to happen in the future)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Additional information
- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request:
## Checklist
- [x] The code change is tested and works locally.
- [ ] Local tests pass. **Your PR cannot be merged unless tests pass**
- [ ] There is no commented out code in this PR.
- [ ] I have followed the [development checklist][dev-checklist]
- [ ] I have followed the [perfect PR recommendations][perfect-pr]
- [ ] The code has been formatted using Black (`black --fast homeassistant tests`)
- [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
If the code communicates with devices, web services, or third-party tools:
- [ ] The [manifest file][manifest-docs] has all fields filled out correctly.
Updated and included derived files by running: `python3 -m script.hassfest`.
- [ ] New or updated dependencies have been added to `requirements_all.txt`.
Updated by running `python3 -m script.gen_requirements_all`.
- [ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
- [ ] Untested files have been added to `.coveragerc`.
To help with the load of incoming pull requests:
- [ ] I have reviewed two other [open pull requests][prs] in this repository.
[prs]: https://github.com/home-assistant/core/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+-label%3Awaiting-for-upstream+sort%3Acreated-desc+review%3Anone+-status%3Afailure
[dev-checklist]: https://developers.home-assistant.io/docs/development_checklist/
[manifest-docs]: https://developers.home-assistant.io/docs/creating_integration_manifest/
[quality-scale]: https://developers.home-assistant.io/docs/integration_quality_scale_index/
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr
Sujet résolu