Skip to content

Commit

Permalink
fix(linux/cpu): 🐛 actually add units for 114a35f
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Jan 25, 2025
1 parent 114a35f commit 068828b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/linux/cpu/usageSensors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 068828b

Please sign in to comment.