Skip to content

Drop unused eebus and mqtt requirement values#29537

Merged
andig merged 1 commit intomasterfrom
chore/drop-eebus-mqtt-requirements
May 1, 2026
Merged

Drop unused eebus and mqtt requirement values#29537
andig merged 1 commit intomasterfrom
chore/drop-eebus-mqtt-requirements

Conversation

@andig
Copy link
Copy Markdown
Member

@andig andig commented May 1, 2026

Summary

  • The eebus and mqtt entries of the template requirements.evcc array were only validated against ValidRequirements (util/templates/template.go:96); no runtime code branched on them
  • Drops RequirementEEBUS / RequirementMQTT constants and trims them from ValidRequirements
  • Removes the now-orphan evcc: ["eebus"] line from 11 templates (charger/eebus, elli-2, elli-charger-connect, elli-charger-pro, evbox-livo, ghost, porsche-pmcc, porsche-pmcp, porsche-wallbox; meter/eebus-mgcp, eebus-mpc); no template still uses ["mqtt"]

Test plan

  • go build ./... clean
  • go test ./util/templates/... passes (template validation now refuses any leftover eebus/mqtt usage)

The eebus and mqtt requirement values were only ever set in template
definitions and never consumed in code (no `requirements.evcc` value is
inspected by the runtime — only the description is rendered). Drop the
Go constants and remove `evcc: ["eebus"]` from the 11 templates that
still carried it. No template still uses `["mqtt"]`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig added infrastructure Basic functionality labels May 1, 2026
@andig andig merged commit 96f5efd into master May 1, 2026
13 checks passed
@andig andig deleted the chore/drop-eebus-mqtt-requirements branch May 1, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Basic functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant