What's Changed
✨ Improvements
- Support for new forecast subscriptions mechanism in HA 2023.9.0+ by @decompil3d in #508
- As of Home Assistant version 2023.9.0, weather forecasts are now available via a web service. Integrations are supposed to begin to remove the forecast from the entity attributes in 2024.4.0, but it seems like some have jumped the gun. This release updates the card to use the new web service mechanism by default, when available. The card will continue to work just fine on older versions of Home Assistant, though.
- This also means that you may be able to use alternate entities for your card now. Previously, if you wanted hourly weather forecasts, you had to make a separate weather entity. But with the changes in HA 2023.9.0, many weather integrations offer multiple granularities of forecasts. This card will attempt to use the finest-grained forecast that your weather entity provides. That means, it will attempt to use hourly first and then fall back to twice daily and then daily, depending on what the entity offers. If you want to override this behavior, you may use the new
forecast_type
config parameter (YAML only). - Since this card now has the option to show dates (added in a previous release), I've removed the warning when you use an entity with daily forecasts. You may consider enabling dates (
show_date: 'all'
) and/or hiding the hours (hide_hours: true
) when using this card for daily forecasts. I've also added theshow_date
config option into the visual editor, so that it's more discoverable and usable. - Thank you to @vingerha for reporting the new weather data behavior in #503
🐛 Bug fixes
- Properly handle boolean values of
show_wind
by @decompil3d in #508- Piggy backed this fix into the same PR as above. The
show_wind
config option is supposed to be a string, but two of the valid values are'true'
and'false'
. This led to some confusion and the card would throw an error when folks passed booleantrue
orfalse
for that configuration setting. The card now properly coerces those boolean values to their string equivalents and does not error. - Thank you to @jazzyisj for reporting this in #509
- Piggy backed this fix into the same PR as above. The
⚙️ Dependencies
- Bump prettier from 3.0.2 to 3.0.3 by @dependabot in #498
- Bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.5.0 by @dependabot in #500
- Bump @typescript-eslint/parser from 6.4.1 to 6.5.0 by @dependabot in #499
- Bump cypress from 12.17.4 to 13.1.0 by @dependabot in #502
- Bump @babel/core from 7.22.11 to 7.22.15 by @dependabot in #504
- Bump @babel/plugin-proposal-decorators from 7.22.10 to 7.22.15 by @dependabot in #505
- Bump actions/checkout from 3 to 4 by @dependabot in #506
- Bump the ts-eslint group with 2 updates by @dependabot in #507
- Bump @babel/core from 7.22.15 to 7.22.17 by @dependabot in #510
Full Changelog: 5.0.1...5.1.0