Update inputs as well

This commit is contained in:
UnchartedBull
2019-11-26 16:31:24 +01:00
parent e55826fb40
commit 8d492ab378
2 changed files with 3 additions and 1 deletions

View File

@@ -637,6 +637,8 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
if self._settings.get(["debug_temperature_log"]) is True:
self._logger.debug("Sensor %s Temperature: %s humidity %s", sensor['label'], temp, hum)
if temp is not None and hum is not None:
sensor["temp_sensor_temp"] = temp
sensor["temp_sensor_humidity"] = hum
sensor_data.append(dict(index_id=sensor['index_id'], temperature=temp, humidity=hum))
self.temperature_sensor_data = sensor_data
self.handle_temp_hum_control()

View File

@@ -14,7 +14,7 @@ plugin_package = "octoprint_enclosure"
plugin_name = "OctoPrint-Enclosure"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "4.13"
plugin_version = "4.13.1"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module