Skip to content

Commit 7e2e4c2

Browse files
committed
Update constants.py
1 parent 620cb6d commit 7e2e4c2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

plugwise/constants.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class ModelData(TypedDict):
359359
hardware_version: str | None
360360
firmware_version: str | None
361361
zigbee_mac_address: str | None
362-
available: bool | None
362+
reachable: bool | None
363363

364364

365365
class SmileBinarySensors(TypedDict, total=False):
@@ -460,10 +460,15 @@ class ActuatorData(TypedDict, total=False):
460460
upper_bound: float
461461

462462

463-
class DeviceDataPoints(
464-
SmileBinarySensors, SmileSensors, SmileSwitches, TypedDict, total=False
463+
class DeviceData(
464+
ApplianceData,
465+
SmileBinarySensors,
466+
SmileSensors,
467+
SmileSwitches,
468+
TypedDict,
469+
total=False,
465470
):
466-
"""The class covering all possible collected data points."""
471+
"""The Device Data class, covering the collected and ordered output-data per device."""
467472

468473
# Loria
469474
dhw_mode: str
@@ -487,16 +492,12 @@ class DeviceDataPoints(
487492
control_state: str | bool
488493

489494
# For temporary use
490-
c_heating_state: str
495+
c_heating_state: bool
491496
modified: str
492497

493498
# Device availability
494499
available: bool | None
495500

496-
497-
class DeviceData(ApplianceData, DeviceDataPoints, TypedDict, total=False):
498-
"""The Device Data class, covering the collected and ordere output-data per device."""
499-
500501
binary_sensors: SmileBinarySensors
501502
domestic_hot_water_setpoint: ActuatorData | float
502503
maximum_boiler_temperature: ActuatorData | float

0 commit comments

Comments
 (0)