瀏覽代碼

force temp to float

pull/258/head
Juan Pablo Giménez 5 年之前
父節點
當前提交
86e2fcab50
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      modules/base_plugins/dummy_temp/__init__.py

+ 1
- 1
modules/base_plugins/dummy_temp/__init__.py 查看文件

@@ -63,7 +63,7 @@ class DummyTempSensor(SensorActive):
'''
while self.is_running() is True:
if not self.current_temp:
self.current_temp = self.temp
self.current_temp = float(self.temp)
self.data_received(self.current_temp)
new_temp = float(self.current_temp) + float(self.inc)
if float(self.min_temp) <= new_temp <= float(self.max_temp):


Loading…
取消
儲存