Update HA-JS

This commit is contained in:
Paulus Schoutsen 2016-06-13 23:37:44 -07:00
parent 1fadec8ded
commit 3c291d2c98
3 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@
"license": "MIT",
"dependencies": {
"classnames": "^2.2.5",
"home-assistant-js": "git+https://github.com/home-assistant/home-assistant-js.git#261d260ba185b384632f7db9058ef436ecdcb97f",
"home-assistant-js": "git+https://github.com/home-assistant/home-assistant-js.git#a6f5188db0a1eaad613ce29bb3b803f111e73746",
"moment": "^2.13.0"
},
"devDependencies": {

View File

@ -1,6 +1,5 @@
import HomeAssistant from 'home-assistant-js';
// While we figure out how ha-entity-marker can keep it's references
const hass = new HomeAssistant();
window.validateAuth = function validateAuth(authToken, rememberAuth) {
@ -32,4 +31,5 @@ hass.reactor.batch(function () {
setTimeout(hass.startLocalStoragePreferencesSync, 5000);
// While we figure out how ha-entity-marker can keep it's references
window.hass = hass;

View File

@ -10,6 +10,7 @@ module.exports = {
entry: {
_ui_compiled: './src/home-assistant.js',
_core_compiled: './src/app-core.js',
_demo_data_compiled: './node_modules/home-assistant-js/demo_data/expose_window.js',
},
output: {
path: 'build',
@ -22,6 +23,7 @@ module.exports = {
test: /.js$/,
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules/home-assistant-js/demo_data'),
path.resolve(__dirname, 'node_modules/home-assistant-js/src'),
],
},