Skip to content

Fix bug with Octopus direct after re-factor - #2854

Merged
springfall2008 merged 5 commits into
mainfrom
fixes5
Nov 2, 2025
Merged

springfall2008 merged 5 commits into
mainfrom
fixes5

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the version number and refactors how Octopus Energy tariff data is handled in the automatic configuration system. The changes simplify metric naming conventions and modify how rates and standing charges are converted from pence to pounds.

  • Version bump from v8.27.2 to v8.27.3
  • Refactored config key naming for Octopus metrics (from metric_octopus_{tariff}_rates to metric_octopus_{tariff})
  • Modified rate value conversion to divide by 100 and apply dp2 formatting
  • Added standing charge only for import tariffs in automatic config

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
apps/predbat/predbat.py Version number updated to v8.27.3
apps/predbat/octopus.py Refactored metric naming, changed rate/standing charge conversion logic, and restricted standing charge config to import tariffs only

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/predbat/octopus.py Outdated
springfall2008 and others added 3 commits November 2, 2025 20:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@springfall2008
springfall2008 merged commit 2d98a76 into main Nov 2, 2025
1 check passed
@springfall2008
springfall2008 deleted the fixes5 branch November 2, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants