diff --git a/setup.py b/setup.py index b5f35ecfab..c36ba08115 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20191204.0", + version="20191204.1", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors", diff --git a/src/panels/config/automation/thingtalk/dialog-thingtalk.ts b/src/panels/config/automation/thingtalk/dialog-thingtalk.ts index 09fa45a7f1..9aa87d029d 100644 --- a/src/panels/config/automation/thingtalk/dialog-thingtalk.ts +++ b/src/panels/config/automation/thingtalk/dialog-thingtalk.ts @@ -182,18 +182,19 @@ class DialogThingtalk extends LitElement { if (devices.length === 1) { Object.entries(devices[0]).forEach(([field, value]) => { this._config[type][index][field] = value; - return; }); + return; } const automation = { ...this._config[type][index] }; - delete this._config[type][index]; + const newAutomations: any[] = []; devices.forEach((fields) => { const newAutomation = { ...automation }; Object.entries(fields).forEach(([field, value]) => { newAutomation[field] = value; }); - this._config[type].push(newAutomation); + newAutomations.push(newAutomation); }); + this._config[type].splice(index, 1, ...newAutomations); }); }); this._sendConfig(this._value, this._config); diff --git a/src/panels/config/cloud/google-assistant/cloud-google-assistant.ts b/src/panels/config/cloud/google-assistant/cloud-google-assistant.ts index c7c752a478..819afbc23e 100644 --- a/src/panels/config/cloud/google-assistant/cloud-google-assistant.ts +++ b/src/panels/config/cloud/google-assistant/cloud-google-assistant.ts @@ -335,7 +335,7 @@ class CloudGoogleAssistant extends LitElement { () => { showToast(parent, { message: this.hass!.localize( - "ui.panel.config.cloud.googe.sync_to_google" + "ui.panel.config.cloud.google.sync_to_google" ), }); cloudSyncGoogleAssistant(this.hass); diff --git a/src/panels/developer-tools/state/developer-tools-state.js b/src/panels/developer-tools/state/developer-tools-state.js index bfb0511f34..8312f15e34 100644 --- a/src/panels/developer-tools/state/developer-tools-state.js +++ b/src/panels/developer-tools/state/developer-tools-state.js @@ -1,8 +1,6 @@ import "@material/mwc-button"; import "@polymer/paper-checkbox/paper-checkbox"; import "@polymer/paper-input/paper-input"; -import "@polymer/paper-menu-button"; -import copy from "copy-to-clipboard"; import { html } from "@polymer/polymer/lib/utils/html-tag"; import { PolymerElement } from "@polymer/polymer/polymer-element"; @@ -13,7 +11,6 @@ import "../../../components/ha-code-editor"; import "../../../resources/ha-style"; import { EventsMixin } from "../../../mixins/events-mixin"; import LocalizeMixin from "../../../mixins/localize-mixin"; -import { showToast } from "../../../util/toast"; const ERROR_SENTINEL = {}; /* @@ -63,10 +60,6 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) { height: 24px; padding: 0; } - .entities paper-menu-button { - height: 24px; - padding: 0; - } .entities td:nth-child(3) { white-space: pre-wrap; word-break: break-word; @@ -75,9 +68,6 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) { .entities a { color: var(--primary-color); } - paper-icon-item { - cursor: pointer; - }
@@ -160,56 +150,13 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {