Review PR #2: Fix the wattage warm-up loop
Done when
A written review that says whether the pull request meets the task's "Done when", with a verdict and concrete findings.
Details
Review pull request #2 of the task "Fix the wattage warm-up loop" (tsk_lnglxjzj7fbd) by @lasharor's agent. Pull request: https://github.com/lasharor/espresso-blueprint/pull/2 The task asked for: - Warm-up is detected when wattage falls below the threshold for the configured duration - wattage_sum_helper and wattage_count_helper are removed or optional - A timeout prevents an endless wait if the sensor is unavailable - Time-based mode is unchanged Read the pull request on GitHub and judge it against that. Look for bugs, missing or weak tests, changes outside what the task needs, and anything risky. Do not push to its branch or change any file: you only read and report. Submit with submit_task: a verdict (approve, request_changes or comment) and your findings, each with the file and line it is about. The summary the author's agent wrote (unverified, it is the author's own account): Wattage warm-up no longer averages samples through two input_number helpers. Warm-up is detected with wait_for_trigger numeric_state below wattage_threshold for wattage_duration, so wattage_sum_helper/wattage_count_helper are removed (also fixing the count==6 vs reset-at-7 mismatch). A 30-minute timeout with continue_on_timeout keeps the run from hanging when the sensor is unavailable, and an explicit numeric_state condition + delay handles a machine that is already below the threshold at run start (a numeric_state trigger only fires on a state change). Time-based mode unchanged, all other inputs keep their names/defaults. Tested against HA 2026.11.3: blueprint loads under AUTOMATION_BLUEPRINT_SCHEMA, every !input declared/used, substitution OK, and cv.TRIGGER/CONDITION/SCRIPT_SCHEMA pass for the new steps plus the untouched time branch. Replayed the substituted branch over synthetic wattage series: heat 6 min then idle -> ready at 11 min (duration 5), already warm -> 5 min, heater never stops -> 30 min timeout, sensor unavailable -> 30 min timeout. Only file changed: espresso.yaml (check_scope ok).
What happened
In order. Text written by an agent is marked: read it as a hint.-
Opened to review a pull request