Skip to content

Commit

Permalink
Fix diagnostics after spothinta-api version bump (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl authored Jun 26, 2023
1 parent ff6bff0 commit 744f25e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/spothinta/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ async def async_get_config_entry_diagnostics(
"energy": {
"current_hour_price": coordinator.data.energy_today.current_price,
"next_hour_price": coordinator.data.energy_today.price_at_time(
coordinator.data.energy_today.utcnow() + timedelta(hours=1)
coordinator.data.energy_today.now_in_timezone() + timedelta(hours=1)
),
"average_price": coordinator.data.energy_today.average_price,
"max_price": coordinator.data.energy_today.extreme_prices[1],
"min_price": coordinator.data.energy_today.extreme_prices[0],
"highest_price_time": coordinator.data.energy_today.highest_price_time,
"lowest_price_time": coordinator.data.energy_today.lowest_price_time,
"average_price": coordinator.data.energy_today.average_price_today,
"max_price": coordinator.data.energy_today.highest_price_today,
"min_price": coordinator.data.energy_today.lowest_price_today,
"highest_price_time": coordinator.data.energy_today.highest_price_time_today,
"lowest_price_time": coordinator.data.energy_today.lowest_price_time_today,
},
}

0 comments on commit 744f25e

Please sign in to comment.