Skip to content

Commit

Permalink
fix(forecast): set is_daytime for additional forecast data
Browse files Browse the repository at this point in the history
Fix #118
  • Loading branch information
IATkachenko authored Apr 14, 2024
1 parent e7ef7b7 commit 6776e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/yandex_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6776e74

Please sign in to comment.