Skip to content

Release 2.6.5: all-time streak records - #130

Merged
kmich merged 1 commit into
mainfrom
claude/ha-ws-core-review-46656e
Jul 29, 2026
Merged

Release 2.6.5: all-time streak records#130
kmich merged 1 commit into
mainfrom
claude/ha-ws-core-review-46656e

Conversation

@kmich

@kmich kmich commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds 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 _days streak sensors, which reset the moment the streak breaks).
  • Follow-up to Add yearly and all time sensors #127, requested by @Benjamin45590 after 2.6.4 shipped.
  • Bumps manifest.json / pyproject.toml to 2.6.5, updates CHANGELOG.md.

Test plan

  • pytest tests/ -v — 302 passed
  • ruff check / ruff format --check — clean
  • Added unit tests: record tracks new highs, survives a streak reset, isn't lowered by a shorter streak, and dry/heat/frost track independently

🤖 Generated with Claude Code

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
kmich force-pushed the claude/ha-ws-core-review-46656e branch from a6e2fcd to 232b282 Compare July 29, 2026 12:41
@kmich
kmich merged commit adc88aa into main Jul 29, 2026
10 checks passed
@kmich
kmich deleted the claude/ha-ws-core-review-46656e branch July 29, 2026 12:48
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.

1 participant