From 86e2fcab50cd8c0053b2ae7e65cb31c3698c8277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Gim=C3=A9nez?= Date: Mon, 10 Aug 2020 00:50:44 -0300 Subject: [PATCH] force temp to float --- modules/base_plugins/dummy_temp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/base_plugins/dummy_temp/__init__.py b/modules/base_plugins/dummy_temp/__init__.py index bc81d85..2c55b03 100644 --- a/modules/base_plugins/dummy_temp/__init__.py +++ b/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):