From a7a91c9dfeae794da7516322fa20e6ff21021ca0 Mon Sep 17 00:00:00 2001 From: Cathal O Cuimin Date: Sun, 15 May 2022 21:35:55 -0700 Subject: [PATCH] Add unit of measurement for rig speed --- custom_components/nicehash/rig_sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/nicehash/rig_sensors.py b/custom_components/nicehash/rig_sensors.py index 0c9b196..ef28e5c 100644 --- a/custom_components/nicehash/rig_sensors.py +++ b/custom_components/nicehash/rig_sensors.py @@ -378,7 +378,7 @@ class RigSpeedSensor(RigSensor): @property def unit_of_measurement(self): """Sensor unit of measurement""" - return None + return f"{self._unit}" @property def device_state_attributes(self):