summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'api.py')
-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)