Skip to content

Commit b401d9e

Browse files
committed
chore: Fixed start time for greener nights
1 parent 5b891c2 commit b401d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/octopus_energy/api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ async def async_get_greener_nights_forecast(self) -> list[GreennessForecast]:
10581058
london_tz = pytz.timezone('Europe/London')
10591059
forecast = list(
10601060
map(lambda item: GreennessForecast(
1061-
parse_datetime(f"{item["date"]}T11:00:00").astimezone(london_tz),
1061+
parse_datetime(f"{item["date"]}T23:00:00").astimezone(london_tz),
10621062
parse_datetime(f"{item["date"]}T06:00:00").astimezone(london_tz) + timedelta(days=1),
10631063
int(item["greennessScore"]),
10641064
item["greennessIndex"],

0 commit comments

Comments
 (0)