Skip to content

Report removed instances as a Removal - #1

Merged
robbinjanssen merged 1 commit into
mainfrom
feature/removals
Nov 5, 2026
Merged

robbinjanssen merged 1 commit into
mainfrom
feature/removals

Conversation

@robbinjanssen

Copy link
Copy Markdown
Owner

The platform publishes an empty retained message on the topic of an instance that is gone (a removed charge point, meter or space). Until now that message was ignored, so a removed instance kept its last data.

  • parse_message returns a Removal(kind, id) for an empty message on a known topic.
  • listen() passes it to the callback, which now gets Update | Removal.
  • wait_for_data() skips removals.
  • The docs say the topics are retained and that the prefix is the slug of the customer site.

Breaking: the callback of listen() can now get a Removal.

🤖 Generated with Claude Code

The platform publishes an empty retained message on the topic of an
instance that is gone. parse_message returns a Removal for it, and listen()
passes it to the callback. Document that the topics are retained and that
the prefix is the slug of the customer site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robbinjanssen robbinjanssen added the breaking-change A breaking change for existing users. label Nov 5, 2026
@robbinjanssen
robbinjanssen merged commit 196ef03 into main Nov 5, 2026
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking-change A breaking change for existing users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant