richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration

Home Page:https://pypi.org/project/IoTuring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entity.Cpu.cpu_freq_current: has sporadically enormous decimal places

Baxxy13 opened this issue · comments

While testing is see that "cpu_freq_current" has often enormous decimal places...
Examples:

Entity.Cpu.cpu_freq_current: 2214.90675
Entity.Cpu.cpu_freq_current: 1447.7362500000002
Entity.Cpu.cpu_freq_current: 1234.55375

System is Proxmox (Debian) on Celeron J4125

Hi,
installed 2022.12.2 and it's looking way better.

But do we really need 2 decimals for the cpu frequency?

Installed the same version on an Raspberry Pi 3B+ and there are always "round" frequencies like...

600,0
800,0

Maybe you could cut or round to zero decimals.
What i mean:
actually:
1.761,76 MHz
could be:
1.762,0 MHz

or:
2.007,99 MHz --> 2.008,0 MHz

It looks and feels better in the HA UI, and decimals ar not really neccessary here i think.