Skip to content

Commit

Permalink
Fix reading of nordpool plugin data to include tomorrow (#743)
Browse files Browse the repository at this point in the history
* Fix reading of nordpool plugin data to include tomorrow

#718

* Debug line removed

* [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 9, 2024
1 parent 6f3ab8c commit 916a3bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import requests
import yaml

THIS_VERSION = "v7.15.18"
THIS_VERSION = "v7.15.19"
PREDBAT_FILES = ["predbat.py"]
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
TIME_FORMAT_SECONDS = "%Y-%m-%dT%H:%M:%S.%f%z"
Expand Down Expand Up @@ -10212,6 +10212,11 @@ def fetch_octopus_rates(self, entity_id, adjust_key=None):
data_import = self.get_state(entity_id=next_rate_id, attribute="all_rates")
if data_import:
data_all += data_import
else:
# Nordpool tomorrow
data_import = self.get_state(entity_id=current_rate_id, attribute="raw_tomorrow")
if data_import:
data_all += data_import

if data_all:
rate_key = "rate"
Expand Down Expand Up @@ -11498,7 +11503,7 @@ def expose_config(self, name, value, quiet=True, event=False, force=False, in_pr
"friendly_name": item["friendly_name"],
"title": item["title"],
"in_progress": in_progress,
"auto_update": True,
"auto_update": False,
"installed_version": item["installed_version"],
"latest_version": latest,
"entity_picture": item["entity_picture"],
Expand Down

0 comments on commit 916a3bc

Please sign in to comment.