Bump version to 0.9.0 - #24
Merged
Merged
Conversation
Minor rather than patch: #23 adds a public callback (EntityProvider.handle_command/2), so consumers need a constraint that guarantees it exists. On 0.8.0 a provider exporting /2 would compile fine and simply never be called — the gate would be silently inert — which is a bad failure mode to leave reachable via "~> 0.8". Also corrects the README install snippet, which still said "~> 0.1". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version bump for release, following #23.
What's in the release
EntityProvider.handle_command/2(#23) — optional callback receiving%{encrypted?: boolean()}. The ESPHome protocol offers no authentication a server can act on:AuthenticationRequestis answered unconditionally, so a Noise session is the only real credential and a keyless server accepts entity commands from anything on the LAN. Espex can't decide which commands are dangerous — aButtonCommandRequestfor "factory reset" and one for "toggle a lamp" are the same message type — so it supplies the context and the provider decides. Fully backward compatible via@optional_callbacks; providers without/2are unaffected.Also in this PR
The README install snippet still said
{:espex, "~> 0.1"}, eight minor versions stale. Corrected to~> 0.9. Pre-existing, unrelated to #23 — folded in because this PR is about versions, but happy to split it out.