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
@@ -126,7 +127,7 @@ class SmartEnergyLegacySensors:
126
127
electricity_produced_point : int
127
128
gas_consumed_cumulative : float | None
128
129
gas_consumed_interval : float | None
129
- net_electricity_cumulative :float
130
+ net_electricity_cumulative : float
130
131
net_electricity_point : int
131
132
132
133
@@ -166,6 +167,7 @@ class AnnaSensors(TypedDict, total=False):
166
167
@dataclass
167
168
class ThermoZone :
168
169
"""Plugwise Adam ThermoZone data class."""
170
+
169
171
active_preset : str
170
172
available_schedules : list [str ]
171
173
climate_mode : str
@@ -225,7 +227,7 @@ class JipLisaTomData(TypedDict, total=False):
225
227
226
228
class JipLisaTomSensors (TypedDict , total = False ):
227
229
"""Tom sensors class."""
228
-
230
+
229
231
battery : int
230
232
humidity : int # Jip only
231
233
setpoint : float # heat or cool
@@ -246,7 +248,7 @@ class WirelessThermostatBinarySensors:
246
248
@dataclass
247
249
class SetpointDict :
248
250
"""Generic setpoint dict class.
249
-
251
+
250
252
Used for temperature_offset, max_dhw_temperature,maximum_boiler_temperature.
251
253
"""
252
254
@@ -292,7 +294,7 @@ class OpenTherm(TypedDict, total=False):
292
294
name : str
293
295
sensors : HeaterCentralSensors
294
296
switches : HeaterCentralSwitches
295
- vendor : str
297
+ vendor : str
296
298
297
299
298
300
class HeaterCentralBinarySensors (TypedDict , total = False ):
@@ -365,11 +367,21 @@ class PlugSwitches(TypedDict, total=False):
365
367
366
368
class PlugwiseP1 :
367
369
"""Plugwise P1 data class."""
368
- data : dict [str , SmileP1Gateway | SmartEnergyMeter ]
370
+
371
+ data : dict [str , SmileP1Gateway | SmartEnergyMeter ]
372
+
369
373
370
374
class Anna (SmileThermostatGateway , AnnaData , OnOffTherm , OpenTherm ):
371
375
"""Plugwise Anna data class."""
372
376
373
377
374
- class Adam (AdamGateway , AnnaAdamData , JipLisaTomData , ThermoZone , PlugData , OnOffTherm , OpenTherm ):
375
- """Plugwise Anna data class."""
378
+ class Adam (
379
+ AdamGateway ,
380
+ AnnaAdamData ,
381
+ JipLisaTomData ,
382
+ ThermoZone ,
383
+ PlugData ,
384
+ OnOffTherm ,
385
+ OpenTherm ,
386
+ ):
387
+ """Plugwise Anna data class."""
0 commit comments