client.py icon indicating copy to clipboard operation
client.py copied to clipboard

Add XML command "GetLifeSpan"

Open flubshi opened this issue 5 months ago • 1 comments

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:

image

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.
  • 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.

flubshi avatar Sep 13 '24 15:09 flubshi