Release 2.6.5: all-time streak records - #130
Merged
Merged
Conversation
Adds sensor.ws_dry_streak_record / heat_streak_record / frost_streak_record, tracking the longest dry/heat/frost streak ever recorded. The existing streak sensors (dry_streak_days, heat_streak_days, frost_streak_days) reset to 0 the moment the current streak breaks, so there was no way to see the all-time longest streak - the record sensors never reset, mirroring the all-time temp/gust extreme sensors added in 2.6.3/2.6.4. Persisted via LearningState (existing HA storage-backed store), with new fields defaulting to 0 so old state files load without a schema bump. Follow-up to #127, requested by @Benjamin45590 after 2.6.4 shipped. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
kmich
force-pushed
the
claude/ha-ws-core-review-46656e
branch
from
July 29, 2026 12:41
a6e2fcd to
232b282
Compare
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.
Summary
sensor.ws_dry_streak_record,sensor.ws_heat_streak_record,sensor.ws_frost_streak_record— the longest dry/heat/frost streak ever recorded, which never resets (unlike the existing_daysstreak sensors, which reset the moment the streak breaks).manifest.json/pyproject.tomlto 2.6.5, updatesCHANGELOG.md.Test plan
pytest tests/ -v— 302 passedruff check/ruff format --check— clean🤖 Generated with Claude Code