Skip to content

Commit 3b89fea

Browse files
authored
Make last update time optional + add tests (#312)
1 parent fc8d8a2 commit 3b89fea

File tree

3 files changed

+3961
-2
lines changed

3 files changed

+3961
-2
lines changed

pyoverkiz/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def mask(input: str) -> str:
3939
@define(init=False, kw_only=True)
4040
class Setup:
4141
creation_time: str
42-
last_update_time: str
42+
last_update_time: str | None = None
4343
id: str = field(repr=obfuscate_id, default=None)
4444
location: Location
4545
gateways: list[Gateway]
@@ -54,7 +54,7 @@ def __init__(
5454
self,
5555
*,
5656
creation_time: str,
57-
last_update_time: str,
57+
last_update_time: str | None = None,
5858
id: str = field(repr=obfuscate_id, default=None),
5959
location: dict[str, Any],
6060
gateways: list[dict[str, Any]],

0 commit comments

Comments
 (0)