decompil3d / lovelace-hourly-weather

Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar.
MIT License
298 stars 31 forks source link

Compatibility fix for Home Assistant Core 2024.7 #705

Closed decompil3d closed 3 months ago

decompil3d commented 3 months ago

Fixes #704

Home Assistant Core 2024.7 drops the deprecated get_forecast service. This card was using the existence of that service to determine whether to use the more modern web socket subscription mechanism of retrieving forecasts or to use the older forecast attribute on the entity. The fix is simply to look for either the older get_forecast OR the newer get_forecasts for this check.

cypress[bot] commented 3 months ago

Passing run #157 ↗︎

0 86 0 0 Flakiness 0

Details:

Merge f70b8cf8ade33591f10336ff60e19a153918662a into 0a241d7618056deae3e3827b0f96...
Project: Lovelace Hourly Weather Commit: a7e705f35f ℹ️
Status: Passed Duration: 01:10 💡
Started: Jun 28, 2024 9:03 PM Ended: Jun 28, 2024 9:04 PM

Review all test suite changes for PR #705 ↗︎