mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 19:06:36 +00:00
Update HA-JS
This commit is contained in:
parent
1fadec8ded
commit
3c291d2c98
@ -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": {
|
||||
|
@ -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;
|
||||
|
@ -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'),
|
||||
],
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user