Skip to content

Commit 7b4c88e

Browse files
author
autoruff
committed
fixup: device_classes Python code fixed using ruff
1 parent 5c4abd3 commit 7b4c88e

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

@@ -139,7 +140,7 @@ class SmartEnergyLegacySensors:
139140
electricity_produced_point: int
140141
gas_consumed_cumulative: float | None
141142
gas_consumed_interval: float | None
142-
net_electricity_cumulative:float
143+
net_electricity_cumulative: float
143144
net_electricity_point: int
144145

145146

@@ -179,6 +180,7 @@ class AnnaSensors(TypedDict, total=False):
179180
@dataclass
180181
class ThermoZone:
181182
"""Plugwise Adam ThermoZone data class."""
183+
182184
active_preset: str
183185
available_schedules: list[str]
184186
climate_mode: str
@@ -238,7 +240,7 @@ class JipLisaTomData(TypedDict, total=False):
238240

239241
class JipLisaTomSensors(TypedDict, total=False):
240242
"""Tom sensors class."""
241-
243+
242244
battery: int
243245
humidity: int # Jip only
244246
setpoint: float # heat or cool
@@ -259,7 +261,7 @@ class WirelessThermostatBinarySensors:
259261
@dataclass
260262
class SetpointDict:
261263
"""Generic setpoint dict class.
262-
264+
263265
Used for temperature_offset, max_dhw_temperature,maximum_boiler_temperature.
264266
"""
265267

@@ -305,7 +307,7 @@ class OpenTherm(TypedDict, total=False):
305307
name: str
306308
sensors: HeaterCentralSensors
307309
switches: HeaterCentralSwitches
308-
vendor : str
310+
vendor: str
309311

310312

311313
class HeaterCentralBinarySensors(TypedDict, total=False):
@@ -378,11 +380,21 @@ class PlugSwitches(TypedDict, total=False):
378380

379381
class PlugwiseP1:
380382
"""Plugwise P1 data class."""
381-
data: dict[str, SmileP1Gateway|SmartEnergyMeter]
383+
384+
data: dict[str, SmileP1Gateway | SmartEnergyMeter]
385+
382386

383387
class Anna(SmileThermostatGateway, AnnaData, OnOffTherm, OpenTherm):
384388
"""Plugwise Anna data class."""
385389

386390

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

Comments
 (0)