Pārlūkot izejas kodu

force temp to float

pull/258/head
Juan Pablo Giménez pirms 5 gadiem
vecāks
revīzija
86e2fcab50
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      modules/base_plugins/dummy_temp/__init__.py

+ 1
- 1
modules/base_plugins/dummy_temp/__init__.py Parādīt failu

@@ -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):


Notiek ielāde…
Atcelt
Saglabāt