FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
188 stars 12 forks source link

Escape backslashes in regular expression #121

Closed flabbamann closed 8 months ago

flabbamann commented 8 months ago

Backslashes must be escaped in regular expressions.

Edit: Prefixing the string seems to be the better solution.

Fixes #119

This generates a SyntaxWarning since Python 3.12. See https://docs.python.org/3.12/library/re.html

FL550 commented 8 months ago

Thank you for your PR!