Merge pull request #3242 from home-assistant/dev

20190602.0
This commit is contained in:
Paulus Schoutsen 2019-06-02 13:52:11 -07:00 committed by GitHub
commit 8297e9e215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 7 deletions

View File

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

View File

@ -35,13 +35,18 @@ class NotificationManager extends LitElement {
@query("ha-toast") private _toast!: HaToast;
public showDialog({
public async showDialog({
message,
action,
duration,
dismissable,
}: ShowToastParams) {
const toast = this._toast;
let toast = this._toast;
// Can happen on initial load
if (!toast) {
await this.updateComplete;
toast = this._toast;
}
toast.setAttribute("dir", computeRTL(this.hass) ? "rtl" : "ltr");
this._action = action || undefined;
this._noCancelOnOutsideClick =

View File

@ -249,7 +249,7 @@ class CloudGoogleAssistant extends LitElement {
// Cache parent because by the time popstate happens,
// this element is detached
const parent = this.parentElement!;
this.addEventListener(
window.addEventListener(
"popstate",
() => fireEvent(parent, "ha-refresh-cloud-status"),
{ once: true }
@ -278,7 +278,10 @@ class CloudGoogleAssistant extends LitElement {
return css`
.banner {
color: var(--primary-text-color);
background-color: var(--card-background-color);
background-color: var(
--ha-card-background,
var(--paper-card-background-color, white)
);
padding: 16px 8px;
text-align: center;
}

View File

@ -6,6 +6,13 @@ import { CloudStatus, fetchCloudStatus } from "../../data/cloud";
import { listenMediaQuery } from "../../common/dom/media_query";
import { HassRouterPage, RouterOptions } from "../../layouts/hass-router-page";
declare global {
// for fire event
interface HASSDomEvents {
"ha-refresh-cloud-status": undefined;
}
}
@customElement("ha-panel-config")
class HaPanelConfig extends HassRouterPage {
@property() public hass!: HomeAssistant;

View File

@ -30,7 +30,6 @@ declare global {
"hass-logout": undefined;
"iron-resize": undefined;
"config-refresh": undefined;
"ha-refresh-cloud-status": undefined;
"hass-api-called": {
success: boolean;
response: unknown;

View File

@ -358,7 +358,7 @@
},
"core_config": {
"edit_requires_storage": "구성내용이 configuration.yaml 에 저장되어있기 때문에 편집기가 비활성화 되었습니다.",
"location_name": "Navnet på din Home Assistant installasjon",
"location_name": "Home Assistant 설치 위치명",
"latitude": "위도",
"longitude": "경도",
"elevation": "고도",