Skip to content

Commit

Permalink
Fix to energy data service scaling (#1968)
Browse files Browse the repository at this point in the history
* Fix to energy data service scaling

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
springfall2008 and pre-commit-ci-lite[bot] authored Feb 6, 2025
1 parent 4c0423f commit 6a71881
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 195 deletions.
2 changes: 1 addition & 1 deletion apps/predbat/energydataservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def minute_data_hourly_rates(self, data, forecast_days, midnight_utc, rate_key,
start_time_str = entry.get(from_key)
rate = entry.get(rate_key, 0) * scale # Apply scaling
if not use_cent:
rate = rate / 100.0
rate = rate * 100.0

# Parse the start time
try:
Expand Down
Loading

0 comments on commit 6a71881

Please sign in to comment.