Whole file
alengwenus/pypck
The author described this change as “Fix RelayStateModifier in control_relays_timer (#183)”. It counts as a record because the check below fails on the code as it stood at d91fbb668 and passes on c82522e70, with nothing else changed between the two runs.
Projectalengwenus/pypck
Fix saved2026-05-31
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix RelayStateModifier in control_relays_timer (#183)
The change
| 546 | 546 | for state in states: | |
| 547 | 547 | assert state in ( | |
| 548 | 548 | lcn_defs.RelayStateModifier.ON, | |
| 549 | - | lcn_defs.RelayStateModifier.OFF, | |
| 549 | + | lcn_defs.RelayStateModifier.NOCHANGE, | |
| 550 | 550 | ) | |
| 551 | 551 | ret += state.value | |
| 552 | 552 |
The check that tells the two apart
fail→pass·tests/test_commands.py::test_command_generation_single_mod_noack[R8T0321--111---command179]
Check file tests/test_commands.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itd91fbb668c4e6114df8a80680baf9f35234e5ad6
Broken version dated2026-05-31
Modulepypck.pck_commands
Units changedPckGenerator
Fingerprinte3cd415c2c657097
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.