1
1
"""Plugwise Device classes."""
2
+
2
3
from __future__ import annotations
3
4
4
5
from dataclasses import dataclass
@@ -103,10 +104,10 @@ class SmartEnergySensors:
103
104
electricity_produced_peak_point : int
104
105
gas_consumed_cumulative : float | None
105
106
gas_consumed_interval : float | None
106
- net_electricity_cumulative :float
107
+ net_electricity_cumulative : float
107
108
net_electricity_point : int
108
109
voltage_phase_one : float | None
109
- voltage_phase_three :float | None
110
+ voltage_phase_three : float | None
110
111
voltage_phase_two : float | None
111
112
112
113
@@ -139,7 +140,7 @@ class SmartEnergyLegacySensors:
139
140
electricity_produced_point : int
140
141
gas_consumed_cumulative : float | None
141
142
gas_consumed_interval : float | None
142
- net_electricity_cumulative :float
143
+ net_electricity_cumulative : float
143
144
net_electricity_point : int
144
145
145
146
@@ -179,6 +180,7 @@ class AnnaSensors(TypedDict, total=False):
179
180
@dataclass
180
181
class ThermoZone :
181
182
"""Plugwise Adam ThermoZone data class."""
183
+
182
184
active_preset : str
183
185
available_schedules : list [str ]
184
186
climate_mode : str
@@ -238,7 +240,7 @@ class JipLisaTomData(TypedDict, total=False):
238
240
239
241
class JipLisaTomSensors (TypedDict , total = False ):
240
242
"""Tom sensors class."""
241
-
243
+
242
244
battery : int
243
245
humidity : int # Jip only
244
246
setpoint : float # heat or cool
@@ -259,7 +261,7 @@ class WirelessThermostatBinarySensors:
259
261
@dataclass
260
262
class SetpointDict :
261
263
"""Generic setpoint dict class.
262
-
264
+
263
265
Used for temperature_offset, max_dhw_temperature,maximum_boiler_temperature.
264
266
"""
265
267
@@ -305,7 +307,7 @@ class OpenTherm(TypedDict, total=False):
305
307
name : str
306
308
sensors : HeaterCentralSensors
307
309
switches : HeaterCentralSwitches
308
- vendor : str
310
+ vendor : str
309
311
310
312
311
313
class HeaterCentralBinarySensors (TypedDict , total = False ):
@@ -378,11 +380,21 @@ class PlugSwitches(TypedDict, total=False):
378
380
379
381
class PlugwiseP1 :
380
382
"""Plugwise P1 data class."""
381
- data : dict [str , SmileP1Gateway | SmartEnergyMeter ]
383
+
384
+ data : dict [str , SmileP1Gateway | SmartEnergyMeter ]
385
+
382
386
383
387
class Anna (SmileThermostatGateway , AnnaData , OnOffTherm , OpenTherm ):
384
388
"""Plugwise Anna data class."""
385
389
386
390
387
- class Adam (AdamGateway , AnnaAdamData , JipLisaTomData , ThermoZone , PlugData , OnOffTherm , OpenTherm ):
388
- """Plugwise Anna data class."""
391
+ class Adam (
392
+ AdamGateway ,
393
+ AnnaAdamData ,
394
+ JipLisaTomData ,
395
+ ThermoZone ,
396
+ PlugData ,
397
+ OnOffTherm ,
398
+ OpenTherm ,
399
+ ):
400
+ """Plugwise Anna data class."""
0 commit comments