Fix precision/decimal issue after HA v2023.4
Improve existing rounding function and add default rounding to one decimal since HA v2023.4 starts to give numbers with insane decimals as default. If you prefer a different number of digits, you can always specify the round-parameter for your entities.