follow-up(occupancy): P3 cleanups from #115 review (config save) #119
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#119
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-ups from the pass-2 review of #115 (admin config save). All P3; the P2 (stale offset after a save) and the "config failed to load" guard were fixed in
937141dbefore merge.Standards
OccupancyConfigUpdateis built withcreate_model, so pyright/mypy reject it as a type annotation and editors lose field completion. Consider an explicit class, or a shared base both schemas derive from, so the fields aren't duplicated.OccupancyRepository.update_config_fields_asyncraisesValueErrorfor fields outsideOccupancyConfigUpdate; nothing tests it.update_config_asynchas no caller left inapp/; only tests use it for seeding. Keep it seed-only (and say so) or replace the seeds withupdate_config_fields_async/ theset_*methods.update_config_fields_async(sqlite3 stores bools as 0/1).FORM_FIELDSintests/test_occupancy_config_api.pystill copies the 9 named inputs fromapp.jsby hand.calibration_mode: stron the response model could be aLiteral/enum.Spec
🤖 Generated with Claude Code