harbor run -t openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-1693harbor download openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-1693Task: Implement a minimal IPMA configuration flow handler in /app/
Goal Create a small, self-contained C++ module that models a Home Assistant-style config flow for the IPMA integration. The module must provide the same basic behavior the provided tests exercise, enabling unit tests to verify showing a config form, validating user input against existing entries, and creating a new entry.
What to implement
A simple async-like flow API under /app/ with the following components:
A lightweight wrapper template to simulate asynchronous results:
A container for existing config entries:
A class (or nested type) that provides:
This can be an interface that IpmaFlowHandler can reference via a pointer like hass->config_entries. Do not rely on any particular test module’s mock; implement a small, dependency-free interface under /app/ that can be used by the flow handler.
IPMA flow handler:
Class: IpmaFlowHandler
Member:
Private helper:
Public methods:
Behavior (must match the tests’ expectations):
_show_config_form
async_step_user
Global keys/strings to use
Namespaces and header layout
What the tests require (mapping to implementation details)
IpmaFlowHandler::_show_config_form() behavior:
IpmaFlowHandler::async_step_user() behavior:
Existing entries injection:
Integration point:
Deliverables
A small, self-contained codebase under /app/ implementing:
A minimal interface for the Home Assistant-like hass object (or a small adapter interface) with a ConfigEntries-like class providing async_entries() and set_entries().
IpmaFlowHandler class with the two methods described above, implementing the exact behavior expected by the tests.
File layout suggestion (any valid layout is acceptable as long as it’s under /app/ and builds with the tests):
Build and usage notes
Acceptance criteria