|
@ -44,7 +44,7 @@ func WriteDeviceStateTable(w io.Writer, devices []models.Device) { |
|
|
|
|
|
|
|
|
temperatureString := "" |
|
|
temperatureString := "" |
|
|
if v.HasCapability(models.DCTemperatureControl, models.DCTemperatureSensor) { |
|
|
if v.HasCapability(models.DCTemperatureControl, models.DCTemperatureSensor) { |
|
|
temperatureString = strconv.FormatFloat(v.State.Temperature, 'f', -1, 64) |
|
|
|
|
|
|
|
|
temperatureString = fmt.Sprintf("%d", v.State.Temperature) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
intensityString := "" |
|
|
intensityString := "" |
|
|