hg1337 / homeassistant-dwd

Custom component for Home Assistant that integrates weather data (measurements and forecasts) of Deutscher Wetterdienst (DWD).
Apache License 2.0
84 stars 6 forks source link

The integration dwd_weather is using the deprecated forecast attribute #11

Closed heinemannj closed 1 year ago

heinemannj commented 1 year ago

After upgrading of HA to

Home Assistant 2023.9.0
Supervisor 2023.08.3
Operating System 10.5
Frontend 20230906.1 - latest

the following waring pop's up:

The integration dwd_weather is using the deprecated forecast attribute.

Please check:

https://www.home-assistant.io/blog/2023/09/06/release-20239/#weather-forecast-service

wwwDESIGN-basti commented 1 year ago

same here

ctyd commented 1 year ago

i have the same problem

hg1337 commented 1 year ago

Hi all, thank you for reporting this. Unfortunately, I'm unable to reproduce it. First of all a bit background information for you:

With version 2023.8.1 I already introduced the new mechanism, see release notes at https://github.com/hg1337/homeassistant-dwd/releases. There is a new entity without the _daily or _hourly suffix that returns daily and hourly forecasts in the new way in one single entity:

image

The deprecated _daily and _hourly entities return the forecast both ways for backward compatibility with third party weather cards, but this doesn't seem to produce the warning here as long as the new mechanism is provided, at least for now.

But I believe I now know what the problem is: @heinemannj in the message it says "dwd_weather". However, this component is "dwd". You are probably using https://github.com/FL550/dwd_weather or both in parallel. (Why both exist see https://github.com/hg1337/homeassistant-dwd/blob/main/questions_and_answers.md)

hg1337 commented 1 year ago

Closing this as "can't reproduce", because I'm pretty sure it's about the other integration and I believe my integration follows already the new mechanism described in the blog. But feel free to reopen it, if you can produce this with the current version (2023.8.2) of "dwd" (not "dwd_weather").

heinemannj commented 1 year ago

But I believe I now know what the problem is: @heinemannj in the message it says "dwd_weather". However, this component is "dwd". You are probably using https://github.com/FL550/dwd_weather or both in parallel. (Why both exist see https://github.com/hg1337/homeassistant-dwd/blob/main/questions_and_answers.md)

Yes you are right - I'm using the other DWD integration. Sorry for the noise.