mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31:10 +00:00
main.py: sort imports, make executable
This commit is contained in:
parent
806cf0a953
commit
e12c949fa8
1 changed files with 5 additions and 1 deletions
6
main.py
Normal file → Executable file
6
main.py
Normal file → Executable file
|
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from colorama import Back, Fore, Style
|
||||
|
||||
from sensors import Sensors
|
||||
from colorama import Fore, Style, Back
|
||||
|
||||
|
||||
def pretty_print():
|
||||
|
|
@ -11,5 +14,6 @@ def pretty_print():
|
|||
for sensors in v:
|
||||
print(f"{sensors.sensor_label}: {sensors.current_temp}°C")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pretty_print()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue