New blogpost weather_entity_forecast_types (#1809)

* New blogpost weather_entity_forecast_types

Create new blogpost for weather entity forecast type changes

* Update weather blog

* new date

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* review comments

* filename

* Update blog/2023-08-07-weather_entity_forecast_types.md

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
G Johansson 2023-08-08 09:47:48 +02:00 committed by GitHub
parent 130bbf6867
commit 18f84a0dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,15 @@
---
author: G Johansson
authorURL: https://github.com/gjohansson-ST
title: "Weather entity forecast types"
---
`WeatherEntity` now allows a single weather entity to support different forecast types meaning it's no longer necessary to create multiple entities for the same location, as an example, an entity providing daily forecast and another entity providing hourly forecast.
Integrations providing `weather` entities should be updated to implement one or several of the new async methods `async_forecast_daily`, `async_forecast_hourly` and `async_forecast_twice_daily`.
For the upcoming Home Assistant Core 2024.3 release, integrations should remove the deprecated `forecast` property and also remove any duplicated weather entities which were added to provide multiple forecasts.
See [`weather` developer documentation](/docs/core/entity/weather#weather-forecasts) for details on how to implement the new forecast methods.
The "Weather Forecast Card" has been updated to provide the user with an option to select the preferred forecast to show, if the integration are using the new methods.