Skip to content

Commit

Permalink
Merge pull request #43 from Leggin/42-get_scenes-gives-pydantic-valid…
Browse files Browse the repository at this point in the history
…ationerror

make scene attributes 'last_undo' and 'last_completed' optional
  • Loading branch information
Leggin authored Jan 22, 2024
2 parents a31db4f + 04adda9 commit 2737a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dirigera/devices/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2737a6c

Please sign in to comment.