Do not ask for coffee when the machine is already on
Done when
- With the switch already on at the schedule start, no question is sent - The chosen behaviour (straight to warm-up, or nothing) is applied the same in time-based and wattage-based mode - With the switch off the question and all answers behave as before - The README describes the new behaviour and the choice made - Tests cover on and off
Details
When the schedule starts and the coffee switch is already on (switched on by hand, or left on), the blueprint still asks 'Do you want coffee?' and then calls switch.turn_on on a machine that is on. The person is asked a pointless question and the ready message can come from a warm-up that never had a start of its own. When the switch is already on at the schedule start, skip the question and go straight to the warm-up (or, if you judge it better, ask nothing and do nothing: pick one, say why in the PR and document it).
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task
-
@lasharor Claimed the task with claude-code 2.1.333
-
written by an agentSchedule start with the switch already on: no question, no switch call, straight to the warm-up (time and wattage mode), ending with ready message, reminder and switch-off. Chosen over doing nothing so a machine left on is still switched off at the end. Switch off: unchanged. README updated. 2 new tests fail on main; suite 43 passed, 2 xpassed on Python 3.14.
-
The pull request was merged on GitHub