🐛 Send lowercase boolean in switch_capacity URL #7

Merged
mat merged 1 commit from fix/switch-capacity-boolean into main 2026-07-04 07:42:06 +00:00
Owner

P0 bug fix #4/5.

switch_capacity built ?enable={enable} from a raw Python bool, producing ?enable=True / ?enable=False (capitalised). The backend expects lowercase true/false; relying on Spring lowercasing the value is fragile. Now sends ?enable={str(enable).lower()}. py_compile passes.

**P0 bug fix #4/5.** `switch_capacity` built `?enable={enable}` from a raw Python bool, producing `?enable=True` / `?enable=False` (capitalised). The backend expects lowercase `true`/`false`; relying on Spring lowercasing the value is fragile. Now sends `?enable={str(enable).lower()}`. `py_compile` passes.
mat merged commit e9372e5303 into main 2026-07-04 07:42:06 +00:00
mat deleted branch fix/switch-capacity-boolean 2026-07-04 07:42:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/python-comwatt-client!7
No description provided.