From b2654c2ece6de4fbf4236378fa9573c9abc003bf Mon Sep 17 00:00:00 2001 From: FL550 Date: Sun, 22 Dec 2024 11:28:30 +0000 Subject: [PATCH] Fix for Error in LOG-File #156 --- custom_components/dwd_weather/connector.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom_components/dwd_weather/connector.py b/custom_components/dwd_weather/connector.py index 58f8df0..8111c19 100644 --- a/custom_components/dwd_weather/connector.py +++ b/custom_components/dwd_weather/connector.py @@ -9,8 +9,12 @@ import PIL.ImageFont from markdownify import markdownify from homeassistant.config_entries import ConfigEntry -from suntimes import SunTimes from io import BytesIO +import warnings + +with warnings.catch_warnings(): + warnings.filterwarnings("ignore", category=SyntaxWarning) + from suntimes import SunTimes from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION,