From 18f84a0dd25fbb50e2583541336a75657154ee04 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 8 Aug 2023 09:47:48 +0200 Subject: [PATCH] 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 * review comments * filename * Update blog/2023-08-07-weather_entity_forecast_types.md Co-authored-by: Erik Montnemery --------- Co-authored-by: Erik Montnemery --- blog/2023-08-07-weather_entity_forecast_types.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 blog/2023-08-07-weather_entity_forecast_types.md diff --git a/blog/2023-08-07-weather_entity_forecast_types.md b/blog/2023-08-07-weather_entity_forecast_types.md new file mode 100644 index 00000000..a995e2df --- /dev/null +++ b/blog/2023-08-07-weather_entity_forecast_types.md @@ -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.