Fixed template strings

This commit is contained in:
Maximilian Giller 2023-10-17 00:35:30 +02:00
parent 3c3e440869
commit 20db70d404

View file

@ -78,7 +78,7 @@ async def temperature():
should_run_time_loop = False should_run_time_loop = False
matrix_display.show_text(measurements["temperature"] + "°C") matrix_display.show_text("{0:0.1f}°C".format(measurements["temperature"]))
if was_clock_runnign: if was_clock_runnign:
should_run_time_loop = True should_run_time_loop = True
@ -99,7 +99,7 @@ async def humidity():
should_run_time_loop = False should_run_time_loop = False
matrix_display.show_text(measurements["humidity"] + "%") matrix_display.show_text("{1:0.1f}%".format(measurements["humidity"]))
if was_clock_runnign: if was_clock_runnign:
should_run_time_loop = True should_run_time_loop = True