The sensor is displayed with a decimal part that should not be there
man55 opened this issue · comments
I have sensors that are specified to display as an integer.
In the standard HOME card they are displayed correctly as an integer.
But when I use the lovelace-multiple-entity-row, these sensors are displayed with a decimal place, which is very annoying.
I tried changing regional settings, but it has no effect.
type: entities
entities:
.....
- entity: sensor.xxxxxxxx_fanrpm_combine
name: fanrpm
styles:
width: 74px
text-align: center
![Screenshot 2024-02-22 183250](https://private-user-images.githubusercontent.com/30772900/307074799-ff04de17-13df-4f01-85bd-332220e357c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODQ2NjgsIm5iZiI6MTcyMDU4NDM2OCwicGF0aCI6Ii8zMDc3MjkwMC8zMDcwNzQ3OTktZmYwNGRlMTctMTNkZi00ZjAxLTg1YmQtMzMyMjIwZTM1N2MzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA0MDYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4OTUwMDBiOWEwM2I1ODUwYTRhYWZjYWQ0MGQyNGYxMmE1MTdkOGM4OTFiM2Y3MjQxNWRjOWYyMDM3ZGY0NmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UaB2_-Dg7zXfRvrIpCRRU0NMT_LZ9XrcS-GLVuh67rw)
![Screenshot 2024-02-22 183224](https://private-user-images.githubusercontent.com/30772900/307074804-60be0841-6e9c-4ae4-be09-9a05691ac0ba.png?j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LUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA0MDYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxYjhkZGQzY2M1ODQxOGI0MjY4OTUxYjIyODM1MWYxM2U4NTI3ODc1MDRjZjNmNTc3MjVmYmIxOGE4OTc1YzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vu68YSdZ0sdqkDXCAy8Wk6iw46sgDmasTul-nO6CJh4)
Why not using a documented native formatting option?
https://github.com/benct/lovelace-multiple-entity-row?tab=readme-ov-file#formatting
Thanks, it worked.
Only now I need to add several dozen extra lines to the code :((.
And so I don’t understand why by default the mod can’t use the format that is defined in the sensor, why add a decimal to it?
And some other users do not understand why to reduce an initial accuracy of sensors in frontend globally.
Like me: there is NONE of sensors in my setup with changed accuracy; if I do not need some extra digits in a particular card - I change this in this particular card.