From 068828bf0879899040b2b9fec6a612f1f235526d Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Sat, 25 Jan 2025 18:29:31 +1000 Subject: [PATCH] fix(linux/cpu): :bug: actually add units for 114a35fa93c158ffe5956a94d6885e840e6a2465 --- internal/linux/cpu/usageSensors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/linux/cpu/usageSensors.go b/internal/linux/cpu/usageSensors.go index 041cffaf4..e42b2e9f1 100644 --- a/internal/linux/cpu/usageSensors.go +++ b/internal/linux/cpu/usageSensors.go @@ -105,6 +105,7 @@ func newCountSensor(name, icon, units, valueStr string) sensor.Entity { sensor.WithID(strcase.ToSnake(name)), sensor.WithStateClass(types.StateClassMeasurement), sensor.AsDiagnostic(), + sensor.WithUnits(units), sensor.WithState( sensor.WithIcon(icon), sensor.WithValue(valueInt),