Merge pull request #2670 from home-assistant/dev

20190203.0
This commit is contained in:
Paulus Schoutsen 2019-02-03 11:29:09 -08:00 committed by GitHub
commit 024ce5c379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 211 additions and 47 deletions

View File

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

View File

@ -1,4 +1,3 @@
import "@polymer/paper-button/paper-button";
import "@polymer/paper-spinner/paper-spinner-lite";
import {
@ -62,6 +61,13 @@ class HaInitPage extends LitElement {
`;
}
protected updated(changedProps) {
super.updated(changedProps);
if (changedProps.has("error") && this.error) {
import(/* webpackChunkName: "paper-button" */ "@polymer/paper-button/paper-button");
}
}
private _retry() {
location.reload();
}

View File

@ -1,6 +1,6 @@
import "@polymer/app-layout/app-toolbar/app-toolbar";
import "@polymer/iron-flex-layout/iron-flex-layout-classes";
import "@polymer/paper-spinner/paper-spinner";
import "@polymer/paper-spinner/paper-spinner-lite";
import { html } from "@polymer/polymer/lib/utils/html-tag";
import { PolymerElement } from "@polymer/polymer/polymer-element";
@ -25,10 +25,10 @@ class HassLoadingScreen extends PolymerElement {
narrow="[[narrow]]"
show-menu="[[showMenu]]"
></ha-menu-button>
<div main-title="">[[title]]</div>
<div main-title>[[title]]</div>
</app-toolbar>
<div class="layout horizontal center-center">
<paper-spinner active=""></paper-spinner>
<paper-spinner-lite active></paper-spinner-lite>
</div>
</div>
`;

View File

@ -24,6 +24,14 @@ import { PolymerChangedEvent } from "../polymer-types";
const NON_SWIPABLE_PANELS = ["kiosk", "map"];
declare global {
// for fire event
interface HASSDomEvents {
"hass-open-menu": undefined;
"hass-close-menu": undefined;
}
}
class HomeAssistantMain extends LitElement {
public hass?: HomeAssistant;
public route?: Route;
@ -32,7 +40,7 @@ class HomeAssistantMain extends LitElement {
static get properties(): PropertyDeclarations {
return {
hass: {},
narrow: {},
_narrow: {},
route: {},
};
}
@ -50,7 +58,7 @@ class HomeAssistantMain extends LitElement {
<ha-url-sync .hass=${hass}></ha-url-sync>
<iron-media-query
query="(max-width: 870px)"
query-matches-changed=${this._narrowChanged}
@query-matches-changed=${this._narrowChanged}
></iron-media-query>
<app-drawer-layout

View File

@ -6,7 +6,6 @@ import {
} from "lit-element";
import "./hass-loading-screen";
import "./hass-error-screen";
import { HomeAssistant, Panel, PanelElement, Route } from "../types";
// Cache of panel loading promises.
@ -168,7 +167,15 @@ class PartialPanelResolver extends LitElement {
`;
}
protected firstUpdated(changedProps: PropertyValues) {
super.firstUpdated(changedProps);
// Load it before it's needed, because it will be shown if user is offline
// and a panel has to be loaded.
import(/* webpackChunkName: "hass-error-screen" */ "./hass-error-screen");
}
protected updated(changedProps: PropertyValues) {
super.updated(changedProps);
if (!this.hass) {
return;
}

View File

@ -62,7 +62,7 @@ class HaPanelDevInfo extends LitElement {
<app-toolbar>
<ha-menu-button
.narrow="${this.narrow}"
showMenu="${this.showMenu}"
.showMenu="${this.showMenu}"
></ha-menu-button>
<div main-title>About</div>
</app-toolbar>

View File

@ -5,6 +5,7 @@ import {
PropertyDeclarations,
TemplateResult,
} from "lit-element";
import "@polymer/paper-icon-button/paper-icon-button";
import { fireEvent } from "../../../common/dom/fire_event";
import { styleMap } from "lit-html/directives/style-map";
@ -96,11 +97,11 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
</div>
`
: html`
<ha-icon
<paper-icon-button
icon="hass:dots-vertical"
class="more-info"
@click="${this._handleMoreInfo}"
></ha-icon>
></paper-icon-button>
<div id="light"></div>
<div id="tooltip">
<div class="icon-state">
@ -286,10 +287,10 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
padding: 8px;
}
.more-info {
float: right;
position: absolute;
cursor: pointer;
padding-top: 16px;
padding-right: 16px;
top: 0;
right: 0;
z-index: 25;
color: var(--secondary-text-color);
}

View File

@ -6,6 +6,7 @@ import {
TemplateResult,
} from "lit-element";
import { classMap } from "lit-html/directives/class-map";
import "@polymer/paper-icon-button/paper-icon-button";
import "../../../components/ha-card";
import "../../../components/ha-icon";
@ -123,11 +124,11 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
small: !this._broadCard,
})}">
<div id="root">
<ha-icon
<paper-icon-button
icon="hass:dots-vertical"
class="more-info"
@click="${this._handleMoreInfo}"
></ha-icon>
></paper-icon-button>
<div id="thermostat"></div>
<div id="tooltip">
<div class="title">${this._config.name ||
@ -548,10 +549,10 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
margin-left: var(--uom-margin-left);
}
.more-info {
float: right;
position: absolute;
cursor: pointer;
padding-top: 16px;
padding-right: 16px;
top: 0;
right: 0;
z-index: 25;
color: var(--secondary-text-color);
}

View File

@ -435,9 +435,14 @@ export class HuiEditCard extends LitElement {
.content {
display: flex;
flex-direction: column;
margin: 0 -10px;
}
.content hui-card-preview {
margin-top: 16px;
margin: 0 10px;
}
.content .element-editor {
margin: 0 10px;
}
@media (min-width: 1200px) {
@ -453,7 +458,7 @@ export class HuiEditCard extends LitElement {
flex: auto;
}
.content hui-card-preview {
margin: 0 24px;
margin: 0 10px;
flex: 490px;
max-width: 490px;
}

View File

@ -145,7 +145,7 @@
"high_demand": "Høj efterspørgsel",
"heat_pump": "Varmepumpe",
"gas": "Gas",
"manual": "brugervejledning"
"manual": "Manual"
},
"configurator": {
"configure": "Konfigurer",

View File

@ -301,7 +301,8 @@
"period": "Period"
},
"logbook": {
"showing_entries": "Showing entries for"
"showing_entries": "Showing entries for",
"period": "Period"
},
"mailbox": {
"empty": "You do not have any messages",
@ -789,10 +790,16 @@
"para_sure": "Are you sure you want to take control of your user interface?",
"cancel": "Never mind",
"save": "Take control"
},
"menu": {
"raw_editor": "Raw config editor"
}
},
"menu": {
"configure_ui": "Configure UI"
"configure_ui": "Configure UI",
"unused_entities": "Unused entities",
"help": "Help",
"refresh": "Refresh"
}
}
},

View File

@ -301,7 +301,8 @@
"period": "תקופה"
},
"logbook": {
"showing_entries": "מציג רשומות עבור"
"showing_entries": "מציג רשומות עבור",
"period": "תקופה"
},
"mailbox": {
"empty": "אין לך הודעות",
@ -788,10 +789,16 @@
"para_sure": "האם אתה בטוח שאתה רוצה לקחת שליטה על ממשק המשתמש?",
"cancel": "לא משנה",
"save": "קח שליטה"
},
"menu": {
"raw_editor": "עורך הקונפיגורציה"
}
},
"menu": {
"configure_ui": "הגדר UI"
"configure_ui": "הגדר UI",
"unused_entities": "ישויות שאינן בשימוש",
"help": "עזרה",
"refresh": "רענן"
}
}
},
@ -1023,7 +1030,8 @@
"updater": "המעדכן",
"weblink": "קישור",
"zwave": "Z-Wave",
"vacuum": "שואב אבק"
"vacuum": "שואב אבק",
"system_health": "בריאות מערכת"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "Időtartam"
},
"logbook": {
"showing_entries": "Bejegyzések megjelenítése"
"showing_entries": "Bejegyzések megjelenítése",
"period": "Időszak"
},
"mailbox": {
"empty": "Nincsenek üzeneteid",
@ -433,6 +434,13 @@
"hours": "Óra",
"minutes": "Perc",
"seconds": "Másodperc"
},
"geo_location": {
"source": "Forrás",
"zone": "Zóna",
"event": "Esemény:",
"enter": "Érkezés",
"leave": "Távozás"
}
}
},
@ -566,6 +574,12 @@
"zha": {
"caption": "ZHA",
"description": "Zigbee Home Automation hálózat menedzsment"
},
"area_registry": {
"description": "Az összes otthoni terület áttekintése."
},
"entity_registry": {
"description": "Az összes ismert entitás áttekintése."
}
},
"profile": {
@ -734,6 +748,9 @@
"checked_items": "Bejelölt tételek",
"clear_items": "Bejelölt tételek törlése",
"add_item": "Tétel hozzáadása"
},
"empty_state": {
"title": "Üdv Itthon"
}
},
"editor": {
@ -768,7 +785,10 @@
}
},
"menu": {
"configure_ui": "Felhasználói felület konfigurálása"
"configure_ui": "Felhasználói felület konfigurálása",
"unused_entities": "Nem használt entitások",
"help": "Súgó",
"refresh": "Frissítés"
}
}
},
@ -1001,7 +1021,10 @@
"weblink": "Hivatkozás",
"zwave": "Z-Wave",
"vacuum": "Porszívó",
"zha": "ZHA"
"zha": "ZHA",
"hassio": "Hass.io",
"homeassistant": "Home Assistant",
"lovelace": "Lovelace"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "기간"
},
"logbook": {
"showing_entries": "다음 날짜의 항목을 표시"
"showing_entries": "다음 날짜의 항목을 표시",
"period": "기간"
},
"mailbox": {
"empty": "메시지가 존재하지 않습니다",
@ -433,6 +434,14 @@
"hours": "시간",
"minutes": "분",
"seconds": "초"
},
"geo_location": {
"label": "위치정보",
"source": "소스",
"zone": "구역",
"event": "이벤트:",
"enter": "입장",
"leave": "퇴장"
}
}
},
@ -565,7 +574,18 @@
},
"zha": {
"caption": "ZHA",
"description": "Zigbee 홈 자동화 네트워크 관리"
"description": "Zigbee 홈 자동화 네트워크 관리",
"services": {
"reconfigure": "ZHA 장치를 다시 구성 합니다. (장치 복구). 장치에 문제가 있는 경우 사용해주세요. 장치가 배터리로 작동하는 경우, 이 서비스를 사용할 때 장치가 켜져있고 통신이 가능한 상태여야 합니다."
}
},
"area_registry": {
"caption": "영역 등록",
"description": "집에 등록된 모든 영역"
},
"entity_registry": {
"caption": "구성요소 등록",
"description": "모든 구성요소"
}
},
"profile": {
@ -734,6 +754,11 @@
"checked_items": "선택한 항목",
"clear_items": "선택한 항목 삭제",
"add_item": "항목 추가"
},
"empty_state": {
"title": "집에 오신 것을 환영합니다",
"no_devices": "이 페이지에서 장치를 제어 할 수 있지만, 장치가 아직 설정되지 않은 것 같습니다. 시작하려면 통합 페이지로 이동해주세요.",
"go_to_integrations_page": "통합 페이지로 이동하기."
}
},
"editor": {
@ -765,10 +790,16 @@
"para_sure": "사용자 인터페이스를 직접 관리하시겠습니까?",
"cancel": "아닙니다",
"save": "직접 관리할게요"
},
"menu": {
"raw_editor": "구성 코드 편집기"
}
},
"menu": {
"configure_ui": "UI 구성"
"configure_ui": "UI 구성",
"unused_entities": "미사용 구성요소",
"help": "도움말",
"refresh": "새로고침"
}
}
},
@ -1001,7 +1032,11 @@
"weblink": "웹링크",
"zwave": "Z-Wave",
"vacuum": "청소기",
"zha": "ZHA"
"zha": "ZHA",
"hassio": "Hass.io",
"homeassistant": "Home Assistant",
"lovelace": "Lovelace",
"system_health": "시스템 상태"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "Periode"
},
"logbook": {
"showing_entries": "Viser oppføringer for"
"showing_entries": "Viser oppføringer for",
"period": "Periode"
},
"mailbox": {
"empty": "Du har ingen meldinger",
@ -433,6 +434,14 @@
"hours": "Timer",
"minutes": "Minutter",
"seconds": "Sekunder"
},
"geo_location": {
"label": "Geolokasjon",
"source": "Kilde",
"zone": "Sone",
"event": "Hendelse:",
"enter": "Ankommer",
"leave": "Foralter"
}
}
},
@ -565,7 +574,18 @@
},
"zha": {
"caption": "ZHA",
"description": "ZigBee Home Automation nettverksadministrasjon"
"description": "ZigBee Home Automation nettverksadministrasjon",
"services": {
"reconfigure": "Rekonfigurer ZHA-enhet (heal enhet). Bruk dette hvis du har problemer med enheten. Hvis den aktuelle enheten er en batteridrevet enhet, sørg for at den er våken og aksepterer kommandoer når du bruker denne tjenesten."
}
},
"area_registry": {
"caption": "Områderegister",
"description": "Oversikt over alle områder i ditt hjem."
},
"entity_registry": {
"caption": "Enhetsregister",
"description": "Oversikt over alle kjente enheter."
}
},
"profile": {
@ -734,6 +754,11 @@
"checked_items": "Merkede elementer",
"clear_items": "Fjern merkede elementer",
"add_item": "Legg til"
},
"empty_state": {
"title": "Velkommen hjem",
"no_devices": "Denne siden lar deg styre enhetene dine, men det ser ut til at du ikke har konfigurert noen enheter ennå. Gå til integrasjonssiden for å komme i gang.",
"go_to_integrations_page": "Gå til integrasjonssiden."
}
},
"editor": {
@ -765,10 +790,16 @@
"para_sure": "Er du sikker på at du vil ta kontroll over brukergrensesnittet ditt?",
"cancel": "Glem det",
"save": "Ta kontroll"
},
"menu": {
"raw_editor": "Tekstbasert konfigurasjonsredigering"
}
},
"menu": {
"configure_ui": "Konfigurer brukergrensesnitt"
"configure_ui": "Konfigurer brukergrensesnitt",
"unused_entities": "Ubrukte enheter",
"help": "Hjelp",
"refresh": "Oppdater"
}
}
},
@ -1001,7 +1032,11 @@
"weblink": "Lenke",
"zwave": "Z-Wave",
"vacuum": "Støvsuger",
"zha": "ZHA"
"zha": "ZHA",
"hassio": "Hass.io",
"homeassistant": "Home Assistant",
"lovelace": "Lovelace",
"system_health": "Systemhelse"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "Período"
},
"logbook": {
"showing_entries": "Exibindo entradas para"
"showing_entries": "Exibindo entradas para",
"period": "Período"
},
"mailbox": {
"empty": "Você não tem mensagens",
@ -427,6 +428,10 @@
"webhook": {
"label": "Webhook",
"webhook_id": "ID da Webhook"
},
"time_pattern": {
"hours": "Horas",
"minutes": "Minutos"
}
}
},
@ -724,6 +729,9 @@
"checked_items": "Itens marcados",
"clear_items": "Limpar itens marcados",
"add_item": "Adicionar item"
},
"empty_state": {
"go_to_integrations_page": "Vá para a página de integrações."
}
},
"editor": {
@ -758,7 +766,10 @@
}
},
"menu": {
"configure_ui": "Configurar “interface” do usuário"
"configure_ui": "Configurar “interface” do usuário",
"unused_entities": "Entidades não utilizadas",
"help": "Ajuda",
"refresh": "Atualizar"
}
}
},
@ -977,7 +988,8 @@
"updater": "Atualizador",
"weblink": "Weblink",
"zwave": "",
"vacuum": "Aspirando"
"vacuum": "Aspirando",
"system_health": "Integridade Do Sistema"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "Период"
},
"logbook": {
"showing_entries": "Отображение записей за"
"showing_entries": "Отображение записей за",
"period": "Период"
},
"mailbox": {
"empty": "У вас нет сообщений",
@ -789,10 +790,16 @@
"para_sure": "Вы уверены, что хотите самостоятельно контролировать пользовательский интерфейс?",
"cancel": "Оставить как есть",
"save": "Получить контроль"
},
"menu": {
"raw_editor": "Текстовый редактор"
}
},
"menu": {
"configure_ui": "Настройка интерфейса"
"configure_ui": "Настройка интерфейса",
"unused_entities": "Неиспользуемые объекты",
"help": "Справка",
"refresh": "Обновить"
}
}
},
@ -1028,7 +1035,8 @@
"zha": "ZHA",
"hassio": "Hass.io",
"homeassistant": "Home Assistant",
"lovelace": "Lovelace"
"lovelace": "Lovelace",
"system_health": "Статус системы"
},
"attribute": {
"weather": {

View File

@ -301,7 +301,8 @@
"period": "期間長"
},
"logbook": {
"showing_entries": "選擇要查看的時間"
"showing_entries": "選擇要查看的時間",
"period": "選擇週期"
},
"mailbox": {
"empty": "目前沒有任何訊息",
@ -789,10 +790,16 @@
"para_sure": "確定要自行編輯使用者介面?",
"cancel": "我再想想",
"save": "自行編輯"
},
"menu": {
"raw_editor": "文字設定編輯器"
}
},
"menu": {
"configure_ui": "設定 UI"
"configure_ui": "設定 UI",
"unused_entities": "未使用物件",
"help": "說明",
"refresh": "更新"
}
}
},
@ -1028,7 +1035,8 @@
"zha": "ZHA",
"hassio": "Hass.io",
"homeassistant": "Home Assistant",
"lovelace": "Lovelace"
"lovelace": "Lovelace",
"system_health": "系統健康"
},
"attribute": {
"weather": {