Skip to content

Commit 6285786

Browse files
author
autoruff
committed
fixup: device_classes Python code fixed using ruff
1 parent 01a2b8f commit 6285786

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

plugwise/devices.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plugwise Device classes."""
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass
@@ -103,10 +104,10 @@ class SmartEnergySensors:
103104
electricity_produced_peak_point: int
104105
gas_consumed_cumulative: float | None
105106
gas_consumed_interval: float | None
106-
net_electricity_cumulative:float
107+
net_electricity_cumulative: float
107108
net_electricity_point: int
108109
voltage_phase_one: float | None
109-
voltage_phase_three:float | None
110+
voltage_phase_three: float | None
110111
voltage_phase_two: float | None
111112

112113

@@ -126,7 +127,7 @@ class SmartEnergyLegacySensors:
126127
electricity_produced_point: int
127128
gas_consumed_cumulative: float | None
128129
gas_consumed_interval: float | None
129-
net_electricity_cumulative:float
130+
net_electricity_cumulative: float
130131
net_electricity_point: int
131132

132133

@@ -166,6 +167,7 @@ class AnnaSensors(TypedDict, total=False):
166167
@dataclass
167168
class ThermoZone:
168169
"""Plugwise Adam ThermoZone data class."""
170+
169171
active_preset: str
170172
available_schedules: list[str]
171173
climate_mode: str
@@ -225,7 +227,7 @@ class JipLisaTomData(TypedDict, total=False):
225227

226228
class JipLisaTomSensors(TypedDict, total=False):
227229
"""Tom sensors class."""
228-
230+
229231
battery: int
230232
humidity: int # Jip only
231233
setpoint: float # heat or cool
@@ -246,7 +248,7 @@ class WirelessThermostatBinarySensors:
246248
@dataclass
247249
class SetpointDict:
248250
"""Generic setpoint dict class.
249-
251+
250252
Used for temperature_offset, max_dhw_temperature,maximum_boiler_temperature.
251253
"""
252254

@@ -292,7 +294,7 @@ class OpenTherm(TypedDict, total=False):
292294
name: str
293295
sensors: HeaterCentralSensors
294296
switches: HeaterCentralSwitches
295-
vendor : str
297+
vendor: str
296298

297299

298300
class HeaterCentralBinarySensors(TypedDict, total=False):
@@ -365,11 +367,21 @@ class PlugSwitches(TypedDict, total=False):
365367

366368
class PlugwiseP1:
367369
"""Plugwise P1 data class."""
368-
data: dict[str, SmileP1Gateway|SmartEnergyMeter]
370+
371+
data: dict[str, SmileP1Gateway | SmartEnergyMeter]
372+
369373

370374
class Anna(SmileThermostatGateway, AnnaData, OnOffTherm, OpenTherm):
371375
"""Plugwise Anna data class."""
372376

373377

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

Comments
 (0)