Skip to content

Commit 5baaf52

Browse files
authored
Update FunHouse_HA_Companion cody.py file
Line 87 erroneously referenced "light" rather than "pressure" causing incorrect pressure value to display on screen.
1 parent d9656b8 commit 5baaf52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FunHouse_HA_Companion/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def update_enviro():
8484

8585
funhouse.set_text("{:.1f}{}".format(environment["temperature"], unit), temp_label)
8686
funhouse.set_text("{:.1f}%".format(environment["humidity"]), hum_label)
87-
funhouse.set_text("{}kPa".format(environment["light"]), pres_label)
87+
funhouse.set_text("{}kPa".format(environment["pressure"]), pres_label)
8888

8989

9090
def connected(client, userdata, result, payload):

0 commit comments

Comments
 (0)