mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
commit
8297e9e215
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="home-assistant-frontend",
|
name="home-assistant-frontend",
|
||||||
version="20190601.0",
|
version="20190602.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",
|
||||||
|
@ -35,13 +35,18 @@ class NotificationManager extends LitElement {
|
|||||||
|
|
||||||
@query("ha-toast") private _toast!: HaToast;
|
@query("ha-toast") private _toast!: HaToast;
|
||||||
|
|
||||||
public showDialog({
|
public async showDialog({
|
||||||
message,
|
message,
|
||||||
action,
|
action,
|
||||||
duration,
|
duration,
|
||||||
dismissable,
|
dismissable,
|
||||||
}: ShowToastParams) {
|
}: 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");
|
toast.setAttribute("dir", computeRTL(this.hass) ? "rtl" : "ltr");
|
||||||
this._action = action || undefined;
|
this._action = action || undefined;
|
||||||
this._noCancelOnOutsideClick =
|
this._noCancelOnOutsideClick =
|
||||||
|
@ -249,7 +249,7 @@ class CloudGoogleAssistant extends LitElement {
|
|||||||
// Cache parent because by the time popstate happens,
|
// Cache parent because by the time popstate happens,
|
||||||
// this element is detached
|
// this element is detached
|
||||||
const parent = this.parentElement!;
|
const parent = this.parentElement!;
|
||||||
this.addEventListener(
|
window.addEventListener(
|
||||||
"popstate",
|
"popstate",
|
||||||
() => fireEvent(parent, "ha-refresh-cloud-status"),
|
() => fireEvent(parent, "ha-refresh-cloud-status"),
|
||||||
{ once: true }
|
{ once: true }
|
||||||
@ -278,7 +278,10 @@ class CloudGoogleAssistant extends LitElement {
|
|||||||
return css`
|
return css`
|
||||||
.banner {
|
.banner {
|
||||||
color: var(--primary-text-color);
|
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;
|
padding: 16px 8px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,13 @@ import { CloudStatus, fetchCloudStatus } from "../../data/cloud";
|
|||||||
import { listenMediaQuery } from "../../common/dom/media_query";
|
import { listenMediaQuery } from "../../common/dom/media_query";
|
||||||
import { HassRouterPage, RouterOptions } from "../../layouts/hass-router-page";
|
import { HassRouterPage, RouterOptions } from "../../layouts/hass-router-page";
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
// for fire event
|
||||||
|
interface HASSDomEvents {
|
||||||
|
"ha-refresh-cloud-status": undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@customElement("ha-panel-config")
|
@customElement("ha-panel-config")
|
||||||
class HaPanelConfig extends HassRouterPage {
|
class HaPanelConfig extends HassRouterPage {
|
||||||
@property() public hass!: HomeAssistant;
|
@property() public hass!: HomeAssistant;
|
||||||
|
@ -30,7 +30,6 @@ declare global {
|
|||||||
"hass-logout": undefined;
|
"hass-logout": undefined;
|
||||||
"iron-resize": undefined;
|
"iron-resize": undefined;
|
||||||
"config-refresh": undefined;
|
"config-refresh": undefined;
|
||||||
"ha-refresh-cloud-status": undefined;
|
|
||||||
"hass-api-called": {
|
"hass-api-called": {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
response: unknown;
|
response: unknown;
|
||||||
|
@ -358,7 +358,7 @@
|
|||||||
},
|
},
|
||||||
"core_config": {
|
"core_config": {
|
||||||
"edit_requires_storage": "구성내용이 configuration.yaml 에 저장되어있기 때문에 편집기가 비활성화 되었습니다.",
|
"edit_requires_storage": "구성내용이 configuration.yaml 에 저장되어있기 때문에 편집기가 비활성화 되었습니다.",
|
||||||
"location_name": "Navnet på din Home Assistant installasjon",
|
"location_name": "Home Assistant 설치 위치명",
|
||||||
"latitude": "위도",
|
"latitude": "위도",
|
||||||
"longitude": "경도",
|
"longitude": "경도",
|
||||||
"elevation": "고도",
|
"elevation": "고도",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user