From 04adda9d148fc2ffcebfd1595b4abee2332ab333 Mon Sep 17 00:00:00 2001 From: Leggin Date: Mon, 22 Jan 2024 18:18:55 +0100 Subject: [PATCH] make last undo and completed optional --- src/dirigera/devices/scene.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dirigera/devices/scene.py b/src/dirigera/devices/scene.py index 8fce63c..c9935f4 100644 --- a/src/dirigera/devices/scene.py +++ b/src/dirigera/devices/scene.py @@ -45,8 +45,8 @@ class Scene(BaseIkeaModel): triggers: List[Trigger] actions: List[Action] created_at: datetime.datetime - last_completed: datetime.datetime - last_triggered: datetime.datetime + last_completed: Optional[datetime.datetime] + last_triggered: Optional[datetime.datetime] last_undo: datetime.datetime commands: List[str] undo_allowed_duration: int