diff --git a/src/frequenz/client/dispatch/types.py b/src/frequenz/client/dispatch/types.py index 031a27d..c9ab30d 100644 --- a/src/frequenz/client/dispatch/types.py +++ b/src/frequenz/client/dispatch/types.py @@ -357,7 +357,7 @@ def to_protobuf(self) -> PBDispatch: is_active=self.active, is_dry_run=self.dry_run, payload=payload, - recurrence=self.recurrence.to_protobuf(), + recurrence=self.recurrence.to_protobuf() if self.recurrence else None, ), )