mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
commit
8297e9e215
2
setup.py
2
setup.py
@ -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",
|
||||
|
@ -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 =
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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": "고도",
|
||||
|
Loading…
x
Reference in New Issue
Block a user