Repository navigation
Description
Current status (17 October 2026)
Email-code-only authentication, current app metadata, credential migration/cleanup and auth contract tests are implemented. validate_login.py provides explicit code request/exchange and authenticated-read validation; fresh code and real-HA expired-session observations remain in #42. No password/Firebase or automatic refresh-token renewal support is claimed.
Delivered: implementation/contracts and dedicated validation tooling. PR #43 consolidates the fixes, 666 passing tests on HA 2026.10.1/2026.3.0, strict mypy/Ruff and the coverage guide. This implementation ticket closes on merge; outstanding external acceptance is explicitly retained in #42, with #21/#22/#41 covering their separate work. Closing this ticket does not certify unperformed physical/app tests.
Historical audit and earlier development notes
The integration omits version_number, hardcodes its device metadata, and includes extra login fields. These are request-shape differences, not a demonstrated login failure: email-code authentication already succeeded in an earlier local test.
APK evidence
view/login/login_account/login_controller.dart, LoginController::login: the constructed map includes email (0xc87798), code (0xc877bc), device_id (0xc877dc), and version_number (0xc87800), then POSTs /account/login_by_email (0xc87864, 0xc87870). The code-request flow separately uses email, code_type_id, and client_id.
Evidence source: NOTTY Smart Pet 1.1.30, SHA-256 3b6dc21037f2802e92233ecd9f685e76b03a79afa2d82dd52a5dfcd689a18e6a, decoded locally with Blutter. These are inspected request-construction paths, not just URL-string matches. Decoded app files and private captures remain outside the public repository.
Integration baseline
api.py at commit 9b1b7c3.
Acceptance criteria
- Trace each captured closure to establish the value, type, and purpose of login metadata.
- Separate code-request and login contracts rather than assuming they need identical fields.
- Decide which fields are required, optional, or intentionally different for a Home Assistant client.
- Add contract fixtures and document successful server behavior without claiming every app field is mandatory.
Validation boundary
This is a verification gap/request-contract investigation, not a claim that every listed difference breaks the live API.
No hardware actions or cloud-setting changes were performed while creating this issue.
Activity