client.py
client.py copied to clipboard
Add XML command "GetLifeSpan"
Adds GetLifeSpan command.
Compared to the JSON commands, this allows to request only one component_type per request.
JSON life span types always start with a lower letter, while XML compnent type always starts capitalized. I am currently not really happy with my approach of converting these types.
Runtime tested:
Summary by CodeRabbit
Summary by CodeRabbit
-
New Features
- Introduced the
GetLifeSpan
command, allowing users to retrieve the lifespan of various device components. - Added
DUST_CASE_HEAP
to the lifespan states, enhancing event handling related to the dust case.
- Introduced the
-
Bug Fixes
- Improved error handling for lifespan queries to ensure graceful responses for invalid XML inputs.
-
Tests
- Added unit tests for the
GetLifeSpan
command to validate functionality and error scenarios.
- Added unit tests for the