Skip to content

Fix the storm-annotation text box: max:500 exceeded HA's MQTT ceiling - #1

Merged
ryanbuiltthat merged 1 commit into
mainfrom
claude/ewfa-storm-procedures-uzy60m
Jul 28, 2026
Merged

Fix the storm-annotation text box: max:500 exceeded HA's MQTT ceiling#1
ryanbuiltthat merged 1 commit into
mainfrom
claude/ewfa-storm-procedures-uzy60m

Conversation

@ryanbuiltthat

Copy link
Copy Markdown
Owner

homeassistant.components.text clamps native_max_value to (0, 255) for every platform, including MQTT. The 0.12.1 discovery config for creek_annotate_latest_storm set max: 500, which isn't clamped down to fit — MQTT discovery validates the payload against the platform schema before creating the entity, so the whole discovery message for that one entity was rejected and silently dropped. Nothing in the add-on's own logs pointed at it; it was only visibly missing from HA's MQTT device page, which is what the user reported.

Fix: max: 255. Added
test_annotate_text_entity_max_is_within_the_mqtt_text_platform_ceiling, which checks every discovery entity with a max field against that ceiling and is confirmed to fail against the 0.12.1 config. Bumped to 0.12.2 with a CHANGELOG entry explaining the root cause.

Claude-Session: https://claude.ai/code/session_01GChdJWPfuCn9gD8giKbLLi

homeassistant.components.text clamps native_max_value to (0, 255) for
every platform, including MQTT. The 0.12.1 discovery config for
creek_annotate_latest_storm set max: 500, which isn't clamped down to
fit — MQTT discovery validates the payload against the platform schema
before creating the entity, so the whole discovery message for that one
entity was rejected and silently dropped. Nothing in the add-on's own
logs pointed at it; it was only visibly missing from HA's MQTT device
page, which is what the user reported.

Fix: max: 255. Added
test_annotate_text_entity_max_is_within_the_mqtt_text_platform_ceiling,
which checks every discovery entity with a `max` field against that
ceiling and is confirmed to fail against the 0.12.1 config. Bumped to
0.12.2 with a CHANGELOG entry explaining the root cause.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GChdJWPfuCn9gD8giKbLLi
@ryanbuiltthat
ryanbuiltthat merged commit 540cd07 into main Jul 28, 2026
2 of 3 checks passed
@ryanbuiltthat
ryanbuiltthat deleted the claude/ewfa-storm-procedures-uzy60m branch July 28, 2026 17:52
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.

2 participants