Records section 8 (the already_in_progress finding and its fix) and
renames the translation requirement to cover every abort reason, with
scenarios for the concurrent-flow path and source-derived enumeration.
Co-authored-by: Cursor <cursoragent@cursor.com>
Marks sections 1-5 and the automated verification in 6 done, syncs the
config-flow delta into the main specs, and records the deferred
Cognito-token-persistence item in PROJECT_HYGIENE.md.
Archive (7.5/7.6) is deliberately held until on-device verification
(6.4-6.7) confirms the fix against the live machine.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reauth aborts with already_configured because async_step_token calls
_abort_if_unique_id_configured() on every source, including reauth where
a matching unique ID is the expected condition. Fresh tokens are discarded
and the entry stays broken.
Artifacts cover the source-aware fix, the 2024.11 core floor the reauth
helpers require, and the pytest-homeassistant-custom-component harness
needed to regression-test a config flow.
Co-authored-by: Cursor <cursoragent@cursor.com>
Task 5.3 confirmed on-device (Mark Keg Changed button and volume-jump
detection both work). Applied the entities delta to the main spec: the
keg freshness sensor now documents the volume-jump triggers and
last_volume restore, plus the new Manual keg-change button requirement.
Co-authored-by: Cursor <cursoragent@cursor.com>
Propose smarter keg-change detection plus a manual override.
Detection gains two volume-based triggers (refill to near-full;
>=50-point upward jump) so a swap is caught even when pours never
resets to 0 (the swap-then-immediate-pour case). Adds a "Mark Keg
Changed" button as a deterministic fallback.
Co-authored-by: Cursor <cursoragent@cursor.com>
Critical fix:
- Cognito refresh now parses response with content_type=None
(was crashing after 1hr when access token expired)
HACS compliance:
- Added README.md with full setup instructions including the
token generation command
- Fixed manifest.json URLs to point at actual repo
- Version bumped to 0.2.0
Brand:
- Added brand/icon.png (PerfectDraft glass icon from official app)
New sensor:
- Keg Freshness: 30-day countdown from keg insertion, detected
via numberOfPoursSinceStartup reset + kegVolume near full,
persisted across restarts via RestoreEntity
Polish:
- Fixed MALFORMED_ARGUMENT in token step description
- Cleaner description referencing README for instructions
Made-with: Cursor
Scaffolds the repo with agent workflow config (AGENTS.md, .gitignore),
openspec tooling, and the perfectdraft-integration change proposal
with design, specs (api-client, config-flow, entities, hacs-packaging),
and implementation tasks — ready for apply phase.
Made-with: Cursor