🐛 Fix copy-pasted error messages in client methods #5

Merged
mat merged 1 commit from fix/client-error-messages into main 2026-07-04 07:42:48 +00:00
Owner

P0 bug fix #2/5.

get_devices, put_device and switch_capacity all raised "Error retrieving sites: ..." (copied from get_sites), which is misleading when debugging. Each now names its own operation:

  • get_devicesError retrieving devices
  • put_deviceError updating device {device_id}
  • switch_capacityError switching capacity {capacity_id}

get_sites (the one legitimately using "Error retrieving sites") is untouched. py_compile passes.

**P0 bug fix #2/5.** `get_devices`, `put_device` and `switch_capacity` all raised `"Error retrieving sites: ..."` (copied from `get_sites`), which is misleading when debugging. Each now names its own operation: - `get_devices` → `Error retrieving devices` - `put_device` → `Error updating device {device_id}` - `switch_capacity` → `Error switching capacity {capacity_id}` `get_sites` (the one legitimately using "Error retrieving sites") is untouched. `py_compile` passes.
mat merged commit 167179f464 into main 2026-07-04 07:42:48 +00:00
mat deleted branch fix/client-error-messages 2026-07-04 07:42:48 +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!5
No description provided.