Skip to content

Commit 924caa8

Browse files
authored
Update
1 parent cb8073f commit 924caa8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

octoprint_psucontrol_raspberrymatic/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ def get_psu_state(self):
9090
self._logger.exception("Exception while reading State")
9191
return False
9292
self._logger.debug("Result: {}".format(r))
93-
r = bool(r)
93+
if r == "true":
94+
r = True
95+
elif r == "false":
96+
r = False
97+
else:
98+
r = bool(r)
9499

95100
return r
96101

0 commit comments

Comments
 (0)