Skip to content

Commit 64abbe1

Browse files
authored
Fix code formatting (#54)
1 parent e77730d commit 64abbe1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pymystrom/discovery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
_LOGGER = logging.getLogger(__name__)
99

10+
1011
class DiscoveredDevice(object):
1112
"""Representation of discovered device."""
1213

pymystrom/switch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,24 @@ def consumedWs(self) -> Optional[float]:
118118
return round(self._consumedWs, 1)
119119

120120
return self._consumedWs
121-
121+
122122
@property
123123
def boot_id(self) -> Optional[str]:
124124
"""A unique identifier to distinguish whether the energy counter has been reset."""
125-
return self._boot_id
126-
125+
return self._boot_id
126+
127127
@property
128128
def energy_since_boot(self) -> Optional[float]:
129129
"""The total energy in watt seconds (Ws) that has been measured since the last power-up or restart of the device."""
130130
if self._energy_since_boot is not None:
131131
return round(self._energy_since_boot, 2)
132132

133133
return self._energy_since_boot
134-
134+
135135
@property
136136
def time_since_boot(self) -> Optional[int]:
137137
"""The time in seconds that has elapsed since the last start or restart of the device."""
138-
return self._time_since_boot
138+
return self._time_since_boot
139139

140140
@property
141141
def firmware(self) -> Optional[str]:

0 commit comments

Comments
 (0)