Change number format of sensor

Hi, im trying to change the number format of my energy sensor that shows power usage in kWh.

The sensor default output is for exmaple 32.138 kWh
But the value should be 3.2 kWh like in the energy dashboard
How can i do this?


Click on the entity in your main dashboard (not the energy dashboard).

Click on the settings cog icon :gear: top right of the pop-up card.

Change this option: