display all test temps in freedom degrees
This commit is contained in:
1 parent
3ecb4fc034
commit
138e7cf315
1 file changed
+2
-1
+2
-1
@@ -255,7 +255,8 @@ def test(test_count = 0) -> None:
|
|||||||
if len(mac_list) == len(passed_list):
|
if len(mac_list) == len(passed_list):
|
||||||
print(f" Test run {test_count} completed, yee-haw")
|
print(f" Test run {test_count} completed, yee-haw")
|
||||||
for sensor in sensors:
|
for sensor in sensors:
|
||||||
print(f" {sensor['name']} - Temp: {round(sensor['temp'],1)} | Humidity: {sensor['humidity']}")
|
temp_f = (sensor['temp'] * 1.8) + 32
|
||||||
|
print(f" {sensor['name']} - Temp: {round(temp_f,0)} | Humidity: {sensor['humidity']}")
|
||||||
test_result = True
|
test_result = True
|
||||||
else:
|
else:
|
||||||
print(f" Test run incomplete/failed, re-running, loop {test_loop_count}. Updating test list")
|
print(f" Test run incomplete/failed, re-running, loop {test_loop_count}. Updating test list")
|
||||||
|
|||||||
Reference in new issue
Block a user