Round sensor values in inline preview tiles
This commit is contained in:
parent
d7a4179d78
commit
b01e8a62a3
@ -501,7 +501,7 @@ MainPageTile {
|
||||
|
||||
Label {
|
||||
text: sensorsRoot.shownStateType
|
||||
? sensorsRoot.device.states.getState(shownStateType.id).value + " " + sensorsRoot.shownStateType.unitString
|
||||
? Math.round(sensorsRoot.device.states.getState(shownStateType.id).value * 100) / 100 + " " + sensorsRoot.shownStateType.unitString
|
||||
: ""
|
||||
// font.pixelSize: app.smallFont
|
||||
Layout.fillWidth: true
|
||||
|
||||
Reference in New Issue
Block a user