File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed
Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ class GatewaySensors:
5858
5959
6060@dataclass
61- class AdamGateway (SmileTGateway ):
61+ class AdamGateway (BaseClass ):
6262 """Plugwise Adam HA Gateway data class."""
6363
64+ binary_sensors : GatewayBinarySensors # Not for legacy?
6465 gateway_modes : list [str ]
6566 regulation_modes : list [str ]
6667 select_gateway_mode : str
6768 select_regulation_mode : str
69+ sensors : GatewaySensors
6870 zigbee_mac_address : str
6971
7072
@@ -253,32 +255,21 @@ class ThermostatsDict:
253255
254256
255257@dataclass
256- class OnOffTherm :
258+ class OnOffTherm ( BaseClass ) :
257259 """On-off heater/cooler device class."""
258260
259261 binary_sensors : HeaterCentralBinarySensors
260- dev_class : str
261- location : str
262- model : str
263- name : str
264262
265263
266264@dataclass
267- class OpenTherm :
265+ class OpenTherm ( BaseClass ) :
268266 """OpenTherm heater/cooler device class."""
269267
270- available : str
271268 binary_sensors : HeaterCentralBinarySensors
272- dev_class : str
273- location : str
274269 maximum_boiler_temperature : SetpointDict | None
275270 max_dhw_temperature : SetpointDict | None
276- model : str
277- model_id : str | None
278- name : str
279271 sensors : HeaterCentralSensors
280272 switches : HeaterCentralSwitches
281- vendor : str
282273
283274
284275@dataclass
@@ -317,20 +308,11 @@ class HeaterCentralSwitches:
317308
318309
319310@dataclass
320- class PlugData :
311+ class PlugData ( BaseClass ) :
321312 """Plug data class covering Plugwise Adam/Stretch and Aqara Plugs, and generic ZigBee type Switches."""
322313
323- available : bool | None
324- dev_class : str
325- firmware : str | None
326- hardware : str | None
327- location : str
328- model : str | None
329- model_id : str
330- name : str
331314 sensors : PlugSensors | None
332315 switches : PlugSwitches
333- vendor : str
334316 zigbee_mac_address : str
335317
336318
You can’t perform that action at this time.
0 commit comments