github decompil3d/lovelace-hourly-weather 5.1.0

latest releases: 6.1.0, 6.0.2, 6.0.1...
12 months ago

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 the show_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 boolean true or false 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

⚙️ Dependencies

Full Changelog: 5.0.1...5.1.0

Don't miss a new lovelace-hourly-weather release

NewReleases is sending notifications on new releases.