File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 77
88_LOGGER = logging .getLogger (__name__ )
99
10+
1011class DiscoveredDevice (object ):
1112 """Representation of discovered device."""
1213
Original file line number Diff line number Diff 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 ]:
You can’t perform that action at this time.
0 commit comments