I had two pi’s up and runing, with exact same config (I was migrating from a pi3 to a pi4) one displayed units correctly, the other had an extra 0000002 on the end after the decimal
I then changed to the formatting option from Phil and everything is okay.
Apparently (for some unfathomable reason) this is not considered a bug and resides in the python code base and has nothing to do with HA
I’m not sure how you’d submit a pull request to the maintainers of python
Though you can (say) to get 2 dp you can always multiply by 100, int, then divide by 100 as int is a trusty stalwart
Yes Phil, We have had this discussion previously, I was just putting it for the ‘average HA user’ to put in context, not blame HA and give a workaround (as I have to check my previous efforts to get the formatting right, whereas the " * 100) | int / 100" is easy to remember. But obviously uses more operations.