diff --git a/custom_components/nicehash/device_sensors.py b/custom_components/nicehash/device_sensors.py index b40b28f..41bf2f5 100644 --- a/custom_components/nicehash/device_sensors.py +++ b/custom_components/nicehash/device_sensors.py @@ -156,7 +156,7 @@ def state(self): 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"