Merge pull request #2981 from home-assistant/dev

20190320.0
This commit is contained in:
Paulus Schoutsen 2019-03-20 07:43:56 -07:00 committed by GitHub
commit 93d971f72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name="home-assistant-frontend", name="home-assistant-frontend",
version="20190319.1", version="20190320.0",
description="The Home Assistant frontend", description="The Home Assistant frontend",
url="https://github.com/home-assistant/home-assistant-polymer", url="https://github.com/home-assistant/home-assistant-polymer",
author="The Home Assistant Authors", author="The Home Assistant Authors",

View File

@ -104,6 +104,7 @@ export class CloudRemotePref extends LitElement {
} }
fireEvent(this, "ha-refresh-cloud-status"); fireEvent(this, "ha-refresh-cloud-status");
} catch (err) { } catch (err) {
alert(err.message);
toggle.checked = !toggle.checked; toggle.checked = !toggle.checked;
} }
} }

View File

@ -98,7 +98,9 @@ It will have access to all data in Home Assistant.
`.trim(); `.trim();
const iframeDoc = this.querySelector("iframe").contentWindow.document; const iframeDoc = this.querySelector("iframe").contentWindow.document;
iframeDoc.open(); iframeDoc.open();
iframeDoc.write(`<script src='${window.customPanelJS}'></script>`); iframeDoc.write(
`<!doctype html><script src='${window.customPanelJS}'></script>`
);
iframeDoc.close(); iframeDoc.close();
} }

View File

@ -66,7 +66,6 @@ export class HUIView extends LitElement {
constructor() { constructor() {
super(); super();
console.log("CONSTRUCT HUI-VIEW");
this._cards = []; this._cards = [];
this._badges = []; this._badges = [];
} }

View File

@ -804,7 +804,7 @@
"init": { "init": {
"data": { "data": {
"username": "用户名", "username": "用户名",
"password": "ui::panel::page-authorize::form::providers::homeassistant::step::init::data::password" "password": "密码"
} }
}, },
"mfa": { "mfa": {