Skip to content

Commit

Permalink
get tariffs for next 28hrs
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRinas committed Mar 2, 2025
1 parent 243b7a2 commit dae0e2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def build_tariff_state(data) -> Dict[str, float]:
current_time = datetime.now(timezone.utc)
prices: Dict[str, float] = {}

for hour in range(24):
for hour in range(28):
hour_time = current_time + timedelta(hours=hour)
for agreement in data['account']['property']['electricityMalos'][0]['agreements']:
process_agreement(agreement, hour_time, prices)
Expand Down

0 comments on commit dae0e2d

Please sign in to comment.