Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pyoverkiz/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ class ZoneItem:
class Zone:
"""A Zone groups related devices inside a place."""

creation_time: str
last_update_time: str
creation_time: int
last_update_time: int
label: str
type: int
items: list[ZoneItem] | None
Expand All @@ -897,7 +897,8 @@ class Zone:
def __init__(
self,
*,
last_update_time: str,
creation_time: int,
last_update_time: int,
label: str,
type: int,
items: list[dict[str, Any]] | None,
Expand All @@ -907,6 +908,7 @@ def __init__(
**_: Any,
) -> None:
"""Initialize Zone from API data and convert nested items."""
self.creation_time = creation_time
self.last_update_time = last_update_time
self.label = label
self.type = type
Expand Down
Loading