From ba33c8a4568ea106c68df2c2c2e006d4a48eb80f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Nov 2018 14:05:36 +0100 Subject: [PATCH 1/6] Fix broken shit --- src/panels/lovelace/cards/hui-entities-card.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/lovelace/cards/hui-entities-card.ts b/src/panels/lovelace/cards/hui-entities-card.ts index a16dde376d..f2f4e216e3 100644 --- a/src/panels/lovelace/cards/hui-entities-card.ts +++ b/src/panels/lovelace/cards/hui-entities-card.ts @@ -18,6 +18,7 @@ import computeDomain from "../../../common/entity/compute_domain.js"; import processConfigEntities from "../common/process-config-entities"; import { HomeAssistant } from "../../../types.js"; import { EntityConfig, EntityRow } from "../entity-rows/types.js"; +import applyThemesOnElement from "../../../common/dom/apply_themes_on_element"; interface ConfigEntity extends EntityConfig { type?: string; @@ -32,6 +33,7 @@ interface Config extends LovelaceConfig { show_header_toggle?: boolean; title?: string; entities: ConfigEntity[]; + theme?: string; } class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement) From 4aa8603ebf382ec4e98e0d04cfe2d2877c0706e8 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Nov 2018 14:05:49 +0100 Subject: [PATCH 2/6] Stop release if TypeScript throws --- script/release | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/release b/script/release index 25ee5d500b..0d682c313f 100755 --- a/script/release +++ b/script/release @@ -9,9 +9,12 @@ cd "$(dirname "$0")/.." # Install node modules yarn install +# Verify everything is ok +tsc + script/build_frontend rm -rf dist python3 setup.py sdist -python3 -m twine upload dist/* +python3 -m twine upload dist/* From 4bcb13486e3108ba7cd4a6b05a49db3f82afa89a Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Nov 2018 14:06:02 +0100 Subject: [PATCH 3/6] Version bump to 20181026.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2f8c3d1510..7e60b408d5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20181026.2", + version="20181026.3", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors", From 058f8d178e5341d0bde16d3437b0380da2426ce4 Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Mon, 29 Oct 2018 13:54:10 -0400 Subject: [PATCH 4/6] Adding div arround each row to deal with spacing --- src/panels/lovelace/cards/hui-entities-card.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panels/lovelace/cards/hui-entities-card.ts b/src/panels/lovelace/cards/hui-entities-card.ts index f2f4e216e3..17aa245232 100644 --- a/src/panels/lovelace/cards/hui-entities-card.ts +++ b/src/panels/lovelace/cards/hui-entities-card.ts @@ -148,9 +148,9 @@ class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement) margin: -4px 0; } #states > * { - margin: 4px 0; + margin: 8px 0; } - #states > * { + #states > div > * { overflow: hidden; } .header { @@ -186,7 +186,7 @@ class HuiEntitiesCard extends hassLocalizeLitMixin(LitElement) element.addEventListener("click", () => this._handleClick(entityConf)); } - return element; + return html`
${element}
`; } private _handleClick(entityConf: ConfigEntity): void { From 343d18241b632ebf4c83d673943ed55887f8829f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Nov 2018 20:07:06 +0100 Subject: [PATCH 5/6] Update translations --- translations/it.json | 10 +++++----- translations/nn.json | 2 +- translations/no.json | 4 ++-- translations/pt.json | 44 ++++++++++++++++++++++---------------------- translations/tr.json | 4 ++-- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/translations/it.json b/translations/it.json index 445f0c0df8..1277ee024f 100644 --- a/translations/it.json +++ b/translations/it.json @@ -530,13 +530,13 @@ "cloud": { "caption": "Home Assistant Cloud", "description_login": "Connesso come {email}", - "description_not_login": "Accesso non effettuato" + "description_not_login": "Non loggato" }, "integrations": { "caption": "integrazioni", "description": "Gestisci dispositivi e servizi connessi", "discovered": "Scoperto", - "configured": "Configura", + "configured": "Configurato", "new": "Configura una nuova integrazione", "configure": "Configura", "none": "Non hai ancora configurato niente", @@ -574,9 +574,9 @@ "dropdown_label": "Tema" }, "refresh_tokens": { - "header": "Aggiorna i token", + "header": "Token di aggiornamento", "description": "Ogni token di aggiornamento rappresenta una sessione di accesso. I token di aggiornamento verranno rimossi automaticamente quando si fa clic su Disconnetti. I seguenti token di aggiornamento sono attualmente attivi per il tuo account.", - "token_title": "Aggiorna token per {clientId}", + "token_title": "Token di aggiornamento per {clientId}", "created_at": "Creato il {date}", "confirm_delete": "Sei sicuro di voler eliminare il token di aggiornamento per {name} ?", "delete_failed": "Impossibile eliminare il token di aggiornamento.", @@ -862,7 +862,7 @@ }, "history_charts": { "loading_history": "Caricamento storico", - "no_history_found": "Nesuno storico trovato" + "no_history_found": "Nessuno storico trovato" } }, "notification_toast": { diff --git a/translations/nn.json b/translations/nn.json index 281453d147..38dd122172 100644 --- a/translations/nn.json +++ b/translations/nn.json @@ -334,7 +334,7 @@ }, "server_management": { "heading": "Serveradministrasjon", - "introduction": "Kontroller Home Assistant serveren din... frå Home Assistant.", + "introduction": "Kontroller Home Assistant-serveren din... frå Home Assistant.", "restart": "Omstart", "stop": "Stopp" } diff --git a/translations/no.json b/translations/no.json index e6608f0212..e4691028e1 100644 --- a/translations/no.json +++ b/translations/no.json @@ -245,10 +245,10 @@ "fog": "Tåke", "hail": "Hagl", "lightning": "Lyn", - "lightning-rainy": "Lyn, regnfull", + "lightning-rainy": "Lyn, regn", "partlycloudy": "Delvis skyet", "pouring": "Kraftig nedbør", - "rainy": "Regnfull", + "rainy": "Regn", "snowy": "Snø", "snowy-rainy": "Sludd", "sunny": "Solfylt", diff --git a/translations/pt.json b/translations/pt.json index e5f88cdc8d..ffe5be5f76 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -360,7 +360,7 @@ "introduction": "Crie automatizações para tornar a sua casa viva", "default_name": "Nova Automação", "save": "Guardar", - "unsaved_confirm": "Você tem alterações não guardas. Tem a certeza de que quer sair?", + "unsaved_confirm": "Existem alterações não guardas. Tem a certeza de que quer sair?", "alias": "Nome", "triggers": { "header": "Gatilhos", @@ -528,7 +528,7 @@ } }, "cloud": { - "caption": "", + "caption": "Home Assistant Cloud", "description_login": "Ligado como {email}", "description_not_login": "Não está ligado" }, @@ -545,9 +545,9 @@ "no_device": "Entidades sem dispositivos", "delete_confirm": "Tem a certeza que pretende apagar esta integração?", "restart_confirm": "Reinicie o Home Assistant para concluir a remoção desta integração", - "manuf": "por {fabricante]", + "manuf": "por {manufacturer}", "hub": "Ligado via", - "firmware": "", + "firmware": "Firmware: {version}", "device_unavailable": "Dispositivo indisponível", "entity_unavailable": "Entidade indisponível" } @@ -619,14 +619,14 @@ "mfa_setup": { "title_aborted": "Abortado", "title_success": "Sucesso!", - "step_done": "Configuração concluida para {step}", + "step_done": "Configuração concluída para {step}", "close": "Fechar", "submit": "Enviar" } }, "page-authorize": { "initializing": "A inicializar", - "authorizing_client": "Você está prestes a dar acesso a {clientId} à sua instância do Home Assistant.", + "authorizing_client": "Está prestes a dar acesso a {clientId} à sua instância do Home Assistant.", "logging_in_with": "Iniciar a sessão com **{authProviderName}**.", "pick_auth_provider": "Ou faça login com", "abort_intro": "Login abortado", @@ -756,22 +756,22 @@ "wind_speed": "Vel. do vento" }, "cardinal_direction": { - "e": "", - "ene": "", - "ese": "", - "n": "", - "ne": "", - "nne": "", - "nw": "", - "nnw": "", - "s": "", - "se": "", - "sse": "", - "ssw": "", - "sw": "", - "w": "", - "wnw": "", - "wsw": "" + "e": "E", + "ene": "ENE", + "ese": "ESE", + "n": "N", + "ne": "NE", + "nne": "NNE", + "nw": "NW", + "nnw": "NNW", + "s": "S", + "se": "SE", + "sse": "SSE", + "ssw": "SSW", + "sw": "SW", + "w": "W", + "wnw": "WNW", + "wsw": "WSW" }, "forecast": "Previsão" }, diff --git a/translations/tr.json b/translations/tr.json index 7ae37230bc..79bcdf1f22 100644 --- a/translations/tr.json +++ b/translations/tr.json @@ -204,7 +204,7 @@ "on": "Açık" }, "scene": { - "scening": "sahneler" + "scening": "senaryolar" }, "script": { "off": "Kapalı", @@ -516,7 +516,7 @@ "plant": "Bitki", "proximity": "Yakınlık", "remote": "Uzaktan Kumanda", - "scene": "Sahne", + "scene": "Senaryo", "script": "Senaryo", "sensor": "Sensör", "sun": "Güneş", From ef40a0ceea3219f95c2c9b073a54f00b7db8e4a8 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Nov 2018 20:08:01 +0100 Subject: [PATCH 6/6] Update frontend to 20181026.4 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7e60b408d5..f36eafa2f6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20181026.3", + version="20181026.4", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors",