Update black to 22.1.0 (#65788)
This commit is contained in:
parent
58409d0895
commit
fa09cf663e
42 changed files with 204 additions and 255 deletions
|
@ -132,7 +132,7 @@ class PyLoadSensor(SensorEntity):
|
|||
|
||||
if "speed" in self.type and value > 0:
|
||||
# Convert download rate from Bytes/s to MBytes/s
|
||||
self._state = round(value / 2 ** 20, 2)
|
||||
self._state = round(value / 2**20, 2)
|
||||
else:
|
||||
self._state = value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue