step 6: add animation and high rate update stress tests
This commit is contained in:
@@ -25,6 +25,17 @@ def get_gauge_debug_state(tag: Tag) -> dict[str, Any]:
|
||||
"config_revision": state.config_revision,
|
||||
"animation_active": state.animation_state.active,
|
||||
"smoothing_active": state.smoothing_state.active,
|
||||
"animation": {
|
||||
"start_value": state.animation_state.start_value,
|
||||
"target_value": state.animation_state.target_value,
|
||||
"started_at": state.animation_state.started_at,
|
||||
"duration": state.animation_state.duration,
|
||||
"active": state.animation_state.active,
|
||||
},
|
||||
"smoothing": {
|
||||
"value": state.smoothing_state.value,
|
||||
"active": state.smoothing_state.active,
|
||||
},
|
||||
}
|
||||
if state.renderer is not None:
|
||||
debug["renderer"] = state.renderer.debug_state()
|
||||
|
||||
Reference in New Issue
Block a user