We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ed5a5 commit ab8f4f7Copy full SHA for ab8f4f7
octoprint_octoeverywhere/printerstateobject.py
@@ -144,3 +144,8 @@ def GetTemps(self):
144
if self._Exists(bed, "actual"):
145
bedActual = round(float(bed["actual"]), 2)
146
return (hotendActual, bedActual)
147
+
148
149
+ # A helper for checking if things exist in dicts.
150
+ def _Exists(self, dictObj:dict, key:str):
151
+ return key in dictObj and dictObj[key] is not None
0 commit comments