deleted unnecessary zeros in device hashrate

This commit is contained in:
Pascal Berski 2021-12-27 03:18:35 +01:00 committed by Roxedus
parent df9651b148
commit 0974f5daa4
No known key found for this signature in database
GPG Key ID: EBC13557C4D91D7B

View File

@ -156,7 +156,7 @@ class DeviceSpeedSensor(DeviceSensor):
if device and len(device.speeds) > 0:
algorithm = device.speeds[0]
self._algorithm = algorithm.get("title")
self._speed = algorithm.get("speed")
self._speed = float(algorithm.get("speed"))
self._speed_unit = algorithm.get("displaySuffix")
else:
self._algorithm = "Unknown"