This commit is contained in:
Paulus Schoutsen 2018-05-18 17:57:26 -04:00
parent 34ec3e0ae5
commit 365d660e79
4 changed files with 5 additions and 8 deletions

View File

@ -7,12 +7,10 @@
"name": "home-assistant-frontend",
"version": "1.0.0",
"scripts": {
"clean": "rm -rf build/* build-temp/* build-es5/* build-temp-es5/* build-translations/*",
"build": "script/build_frontend",
"lint_js": "eslint src hassio/src test-mocha",
"lint_html": "polymer lint",
"lint": "eslint src hassio/src test-mocha && polymer lint",
"mocha": "node_modules/.bin/mocha --opts test-mocha/mocha.opts",
"test": "npm run lint_js && npm run lint_html && npm run mocha"
"test": "npm run lint && npm run mocha"
},
"author": "Paulus Schoutsen <Paulus@PaulusSchoutsen.nl> (http://paulusschoutsen.nl)",
"license": "Apache-2.0",

View File

@ -1,2 +1,2 @@
/** An empty image which can be set as src of an img element. */
export default 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
export default 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';

View File

@ -22,7 +22,6 @@ import '../managers/notification-manager.js';
import '../resources/ha-style.js';
import '../resources/html-import/polyfill.js';
import '../util/ha-pref-storage.js';
import '../util/hass-call-api.js';
import '../util/hass-translation.js';
import '../util/legacy-support';
import '../util/roboto.js';

View File

@ -1,4 +1,4 @@
export default function hassCallApi (host, auth, method, path, parameters) {
export default function hassCallApi(host, auth, method, path, parameters) {
var url = host + '/api/' + path;
return new Promise(function (resolve, reject) {
@ -53,4 +53,4 @@ export default function hassCallApi (host, auth, method, path, parameters) {
req.send();
}
});
};
}