From 6776e74e599742bbc5d65fcb4dc944e120f8e49a Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 14 Apr 2024 17:11:53 +0300 Subject: [PATCH] fix(forecast): set `is_daytime` for additional forecast data Fix #118 --- custom_components/yandex_weather/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/yandex_weather/weather.py b/custom_components/yandex_weather/weather.py index 83313b9..7d9b9ba 100644 --- a/custom_components/yandex_weather/weather.py +++ b/custom_components/yandex_weather/weather.py @@ -269,7 +269,7 @@ def __forecast_twice_daily(self) -> list[Forecast] | None: native_pressure=self.native_pressure, native_wind_speed=self.native_wind_speed, condition=self.condition, - # is_daytime=self.is_daytime, + is_daytime=self.coordinator.data.get("daytime") == "d", ), ) return result