summaryrefslogtreecommitdiff
path: root/heating.py
diff options
context:
space:
mode:
Diffstat (limited to 'heating.py')
-rw-r--r--heating.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/heating.py b/heating.py
index a774254..9bb0bc5 100644
--- a/heating.py
+++ b/heating.py
@@ -22,8 +22,10 @@ class heating(ABC):
self.temperature = self.get_temperature()
if self.temperature < self.target:
self.on = True
+ self.turn_on()
else:
self.on = False
+ self.turn_off()
'''
self.db.exec(
"insert into temperature values (?,?,?,?)",