Skip to content

Commit e60ee3e

Browse files
authored
Make metadata optional in Scenario class (#1883)
Fixes home-assistant/core#160443
1 parent c4629e3 commit e60ee3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyoverkiz/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ class Scenario:
618618
creation_time: int
619619
last_update_time: int | None = None
620620
label: str = field(repr=obfuscate_string)
621-
metadata: str
621+
metadata: str | None = None
622622
shortcut: bool | None = None
623623
notification_type_mask: int | None = None
624624
notification_condition: str | None = None
@@ -630,9 +630,9 @@ class Scenario:
630630
def __init__(
631631
self,
632632
creation_time: int,
633-
metadata: str,
634633
actions: list[dict[str, Any]],
635634
oid: str,
635+
metadata: str | None = None,
636636
last_update_time: int | None = None,
637637
label: str | None = None,
638638
shortcut: bool | None = None,

0 commit comments

Comments
 (0)