Update __init__.py

This commit is contained in:
ShagoY
2020-11-18 17:45:34 +01:00
committed by GitHub
parent ff9d899d10
commit 5b5ec7fc75

View File

@@ -904,7 +904,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
stdout = (Popen(cmd, shell=True, stdout=PIPE).stdout).read()
if self._settings.get(["debug_temperature_log"]) is True:
self._logger.debug("BME280 result: %s", stdout)
temp, hum = stdout.split("|")
temp, hum = stdout.split(b"|")
return (self.to_float(temp.strip()), self.to_float(hum.strip()))
except Exception as ex:
self._logger.info(