summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:40:19 +0000
committerroot <root@turin.home>2022-01-30 15:40:19 +0000
commit74a189c366e07e681176bc207bdcc1aa316790c7 (patch)
tree0c90a5a59f239e2b9206cdd5b1ceb670a9fc3540
parent4fba299e5e36101a43c7e894cb2bf235ed2e3f58 (diff)
Type errors
-rw-r--r--api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/api.py b/api.py
index 5d37b26..468942b 100644
--- a/api.py
+++ b/api.py
@@ -23,14 +23,14 @@ def api_info():
@app.route("/api/current_temperature")
def api_current_temperature():
- return boiler.temperature
+ return str(boiler.temperature)
@app.route("/api/target_temperature")
def api_target_temperature():
- return boiler.target
+ return str(boiler.target)
@app.route("/api/heating_on")
def api_on():
- return boiler.on
+ return str(boiler.on)