Skip to content

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Jan 5, 2026

No description provided.

shsms added 5 commits January 5, 2026 13:34
@shsms shsms requested a review from a team as a code owner January 5, 2026 12:47
@shsms shsms requested review from ela-kotulska-frequenz and removed request for a team January 5, 2026 12:47
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:data-pipeline Affects the data pipeline labels Jan 5, 2026
@llucax llucax added this to the v1.0.0-rc2300 milestone Jan 5, 2026
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

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

Assigning to rc2300 because this is a breaking change. Also I think we need to mention it in the upgrading section of the release notes.

Comment on lines +93 to +94
if not self._batteries.issubset(all_batteries):
unknown_ids = self._batteries - all_batteries
Copy link
Contributor

Choose a reason for hiding this comment

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

You could save a line of code and a couple cycles by reversing this:

Suggested change
if not self._batteries.issubset(all_batteries):
unknown_ids = self._batteries - all_batteries
if unknown_ids := self._batteries - all_batteries:

(same for the rest)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that doesn't look like a subset check.

- `FormulaEngine` and `FormulaEngine3Phase` are now type aliases to `Formula` and `Formula3Phase`, fixing a typing issue introduced in `v1.0.0-rc2202`.
<!-- Here goes a general summary of what this release is about -->

## Upgrading
Copy link
Contributor

Choose a reason for hiding this comment

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

I would also add a note here, as this is effectively a breaking change. Users will need to update their code to deal with the exception, or validate the IDs before passing them to new_xxx_pool().

@llucax llucax added the scope:breaking-change Breaking change, users will need to update their code label Jan 5, 2026
@shsms
Copy link
Contributor Author

shsms commented Jan 5, 2026

It is of course not a breaking change, because it was broken much worse earlier when they sent non-battery to battery pool. This is a more predictable meaningful error. Just a bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:data-pipeline Affects the data pipeline part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests scope:breaking-change Breaking change, users will need to update their code

Projects

Status: To do

Development

Successfully merging this pull request may close these issues.

2 participants