-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Not functionally broken, but just an idea to clear a few warnings in the IDE
.../selpi/statistics.py" is overriding the stdlib module "statistics"
Could it be considered to:
- rename statistics.py to selpi_statistics.py
- Modify
from statistics import Statisticstofrom selpi_statistics import Statisticsin the following files http-select.pyhttp-pystat-select.pystat.py
The issue is occurring in Ubuntu 24.04 LTS, and in line with Ubuntu's apparent move away from PIP, I'm using the APT managed modules instead.
Just for context of what I was doing when I ran into the above - I have been running an adapted version of Justin's code for years (runs as a service) to Publish values to MQTT (For consumption by OpenHAB and EmonCMS). I was starting to refactor it for some minor improvements, but also having a look at your code as a possible alternative option (Adding a 'MQTT' command, which publishes the stats to MQTT topics on a predefined interval). Just a half-baked idea at this stage !!
Cheers