mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix callApi with auth
This commit is contained in:
parent
264731961b
commit
07357bcca8
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user