hg1337 / homeassistant-dwd

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

Bugfix/detect stations with 4 character #5

Closed mpg07 closed 1 year ago

mpg07 commented 1 year ago

There exist currently 330 stations which have an id that consist of only 4 characters. These generate a report link of the form id_-BEOB.csv.

The regex for the href attribute was fixed such that trailing underscores do not become part of the id.

The URL to retrieve the weather measurements was changed accordingly.

hg1337 commented 1 year ago

Thank you @mpg07 for your contribution! :)