Skip to content

feat: WashData coupling, docs and release fixes (milestone 4) - #4

Merged
Developer-Simon merged 8 commits into
mainfrom
m4-washdata-docs
Dec 5, 2026
Merged

Developer-Simon merged 8 commits into
mainfrom
m4-washdata-docs

Conversation

@Developer-Simon

@Developer-Simon Developer-Simon commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Milestone 4: optional WashData coupling, documentation and a final round of fixes from a whole-integration review. After this PR the integration is ready for 0.1.0.

WashData coupling (optional)

  • Pick a ha_washdata entry in the extras step. The field only appears if WashData is installed. The interface was checked against ha_washdata v0.6.2.
  • Cycles follow WashData events.
  • The shutdown lock releases only on finished, clean, off or idle, and only if power is no longer high.
  • Mirror sensors: program, time remaining, progress.
  • If WashData is missing or not loaded, the integration uses its own logic and shows a repair issue. A stale link is removed in the extras step.

Documentation

  • README (concept, features, setup, profiles, WashData)
  • docs/integration.md (all fields, entities, events, actions, triggers, behaviour)

Fixes from the whole-integration review. Each fix has a regression test.

  • No switch-off on missing data: auto-off and the shutdown lock now wait while the power sensor is unavailable. A pending standby reading is dropped.
  • A short "plug unavailable" no longer ends a cycle. A cycle without WashData survives restarts and option reloads.
  • With WashData linked, a restart no longer wipes stored counters and the one-time lock.
  • No re-enable on the first plug reading after start, so the plug is never switched on at HA startup.
  • A failed switch.turn_off aborts the shutdown instead of getting stuck.
  • Reconfiguring to another plug shows the old switch again.
  • The main switch is unavailable while the plug is.
  • lock_shutdown only accepts positive durations.
  • Profiles washing machine, dryer and dishwasher no longer default to auto-off, which would cut a delayed start.

Test plan

  • pytest tests: 175 passed
  • ruff check . / ruff format --check . clean
  • The reviewer's failure probes re-run against HEAD: all clean
  • CI: hassfest + HACS

AI use

Claude Code (Claude Sonnet 5.5 as controller, Claude Haiku as implementer subagents, Claude Opus for the whole-integration review and its re-review).

Squash commit message

feat: WashData coupling, docs and release fixes

- optional WashData coupling: cycles from WashData events, release only
  on finished/clean/off/idle with low power, program/time remaining/
  progress mirror sensors, repair issue and own logic when WashData is
  missing or not loaded, stale links removed in the extras step
- docs: README and integration reference
- fixes: no switch-off while power data is missing, plug blips keep the
  cycle, active cycle survives restarts, Store no longer wiped with
  WashData linked, no re-enable on the first plug reading, failed
  switch-off aborts the shutdown, reconfigure unhides the old switch,
  main switch unavailable with the plug, positive lock durations only,
  no auto-off default for washer/dryer/dishwasher

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

🤖 Generated with Claude Code

Developer-Simon and others added 8 commits December 5, 2026 23:08
Link an advanced_device entry to a ha_washdata entry (extras step and
options flow). Cycles and the shutdown release follow WashData's state;
mirror sensors expose program, time remaining and progress. Without the
WashData entry the own logic is used and a repair issue is raised.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r defaults

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Remove the migration guide, the archived blueprint and the README link.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OptionsFlowWithReload schedules a reload after the flow; when it ran after the local patch ended, the real setup started and left a delayed Store write behind (flaky 'Lingering timer' at teardown). Patch setup/unload for the whole flow test modules and wait for pending tasks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Developer-Simon
Developer-Simon merged commit 957d15d into main Dec 5, 2026
8 checks passed
@Developer-Simon
Developer-Simon deleted the m4-washdata-docs branch December 5, 2026 23:07
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