diff --git a/src/home-assistant.html b/src/home-assistant.html
index 93b8de3cf7..8894d3c968 100644
--- a/src/home-assistant.html
+++ b/src/home-assistant.html
@@ -146,7 +146,8 @@ Polymer({
},
callApi: function (method, path, parameters) {
var host = window.location.protocol + '//' + window.location.host;
- return window.hassCallApi(host, {}, method, path, parameters);
+ var auth = conn.options.authToken ? conn.options : {};
+ return window.hassCallApi(host, auth, method, path, parameters);
},
}, this.$.storage.getStoredState());