diff --git a/pyoverkiz/models.py b/pyoverkiz/models.py index 0c591572..9b4e0771 100644 --- a/pyoverkiz/models.py +++ b/pyoverkiz/models.py @@ -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 @@ -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, @@ -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