Action Helpers

Shared methods handling .

check_component_state_matches_awaited(component_state, awaited_state)[source]

Check if the given component state matches the awaited state.

Return type:

bool

convert_enums_to_names(values)[source]

Convert any enums in the given list to their names.

Return type:

list[str]

report_awaited_attributes(progress_callback, awaited_attributes, awaited_values, device=None)[source]

Report the awaited attributes and their expected values.

Return type:

None

report_task_progress(progress_msg, command_progress_callback=None, user_operator=False)[source]

Wraps the command progress callback to update device status.

Return type:

None

update_task_status(task_callback, **task_statuses)[source]

Wraps the task callback to report lrc statuses.

Return type:

None