fix: fixed sensor value units in the Mini widget (#2102)

This commit is contained in:
Serhiy Mytrovtsiy
2024-09-03 18:29:04 +02:00
parent fd6a042560
commit c44f089239

View File

@@ -109,7 +109,7 @@ public class Sensors: Module {
switch w.item {
case let widget as Mini:
if let active = value.sensors.first(where: { $0.key == self.selectedSensor }) {
var value: Double = active.value/100
var value: Double = active.localValue/100
var unit: String = active.miniUnit
if let fan = active as? Fan, self.fanValueState == .percentage {
value = Double(fan.percentage)/100