diff --git a/src/blueapi/worker/event.py b/src/blueapi/worker/event.py index ad2d33205..367464457 100644 --- a/src/blueapi/worker/event.py +++ b/src/blueapi/worker/event.py @@ -113,8 +113,8 @@ class StatusView(BlueapiBaseModel): description="Target value operation of progress, if known", default=None ) unit: str = Field(description="Units of progress", default="units") - precision: int = Field( - description="Sensible precision of progress to display", default=3 + precision: int | None = Field( + description="Sensible precision of progress to display", default=None ) done: bool = Field( description="Whether the operation this status describes is complete", diff --git a/src/blueapi/worker/task_worker.py b/src/blueapi/worker/task_worker.py index e52ceed89..adcfe366d 100644 --- a/src/blueapi/worker/task_worker.py +++ b/src/blueapi/worker/task_worker.py @@ -656,7 +656,7 @@ def _on_status_event( initial=initial, target=target, unit=unit or "units", - precision=precision or 3, + precision=precision, done=status.done, percentage=percentage, time_elapsed=time_elapsed,