1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
"""Data model for a Z-Wave JS controller."""
from __future__ import annotations
from typing import TypedDict
from .statistics import ControllerStatisticsDataType
class ControllerDataType(TypedDict, total=False):
"""Represent a controller data dict type."""
sdkVersion: str
type: int
homeId: int
ownNodeId: int
isPrimary: bool
isSUC: bool
nodeType: int
isUsingHomeIdFromOtherNetwork: bool
isSISPresent: bool
wasRealPrimary: bool
firmwareVersion: str
manufacturerId: int
productType: int
productId: int
supportedFunctionTypes: list[int]
sucNodeId: int
supportsTimers: bool
isRebuildingRoutes: bool
statistics: ControllerStatisticsDataType
inclusionState: int
rfRegion: int
status: int
rebuildRoutesProgress: dict[str, str]
supportsLongRange: bool
|