Skip to content

EcoFlow SimCounter: use component_config.type - #4245

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
ndrsnhs:ecoflow-stream-fix
Nov 2, 2026
Merged

LKuemmel merged 1 commit into
openWB:masterfrom
ndrsnhs:ecoflow-stream-fix

Conversation

@ndrsnhs

@ndrsnhs ndrsnhs commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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.

🟢 Approval recommended

The reviewed changes consistently replace the legacy argument with each component’s configured type, addressing the identified active issue across the inverter, counter, and battery components.

No open issues 🎉

What changed in this PR

Updates EcoFlow Stream components to initialize SimCounter with each component’s configured type, aligning with the current API and ensuring correct simulation behavior.

Changes:

  • Replaces legacy prefix arguments with component_config.type.
  • Applies the correction to inverter, counter, and battery components.
File Description
packages/​modules/​devices/​ecoflow/​stream/​inverter.py Passes the configured inverter type to SimCounter.
packages/​modules/​devices/​ecoflow/​stream/​counter.py Passes the configured counter type to SimCounter.
packages/​modules/​devices/​ecoflow/​stream/​bat.py Passes the configured battery type to SimCounter.

Review effort: Lite

@LKuemmel
LKuemmel merged commit 2f7aa58 into openWB:master Nov 2, 2026
1 check passed
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.

3 participants