From 2f47eece59454bc9619f16a4619a66c87f9781cd Mon Sep 17 00:00:00 2001 From: FL550 Date: Tue, 3 Sep 2024 11:09:37 +0000 Subject: [PATCH] Removes night-icon for daily forecast --- custom_components/dwd_weather/connector.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/custom_components/dwd_weather/connector.py b/custom_components/dwd_weather/connector.py index f463b69..f4bc1a3 100644 --- a/custom_components/dwd_weather/connector.py +++ b/custom_components/dwd_weather/connector.py @@ -296,11 +296,6 @@ def get_forecast_daily(self) -> list[Forecast] | None: timestep, False, ) - if condition == "sunny" and ( - timestep.hour < self.sun.riseutc(timestep).hour # type: ignore - or timestep.hour > self.sun.setutc(timestep).hour # type: ignore - ): - condition = "clear-night" temp_max = self.dwd_weather.get_daily_max( WeatherDataType.TEMPERATURE, timestep,