From 01eae3876b7c42e59f5d0b13ea246665b16d47fd Mon Sep 17 00:00:00 2001 From: Zep Fietje <44533235+zepfietje@users.noreply.github.com> Date: Thu, 20 Feb 2020 21:10:40 +0100 Subject: [PATCH 1/3] Make config list items appearance consistent for automations, scenes and scripts (#4945) --- src/panels/config/scene/ha-scene-dashboard.ts | 9 ++++----- src/panels/config/script/ha-script-picker.ts | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts index 1693aa9d9a..75b86a5b15 100644 --- a/src/panels/config/scene/ha-scene-dashboard.ts +++ b/src/panels/config/scene/ha-scene-dashboard.ts @@ -158,7 +158,6 @@ class HaSceneDashboard extends LitElement { } ha-card { - padding-bottom: 8px; margin-bottom: 56px; } @@ -169,6 +168,10 @@ class HaSceneDashboard extends LitElement { padding: 0 8px 0 16px; } + .scene > *:first-child { + margin-right: 8px; + } + .scene a[href] { color: var(--primary-text-color); } @@ -177,10 +180,6 @@ class HaSceneDashboard extends LitElement { display: flex; } - ha-entity-toggle { - margin-right: 16px; - } - ha-fab { position: fixed; bottom: 16px; diff --git a/src/panels/config/script/ha-script-picker.ts b/src/panels/config/script/ha-script-picker.ts index 836cf63f1a..abe9b3d0bd 100644 --- a/src/panels/config/script/ha-script-picker.ts +++ b/src/panels/config/script/ha-script-picker.ts @@ -139,7 +139,6 @@ class HaScriptPicker extends LitElement { } ha-card { - padding-bottom: 8px; margin-bottom: 56px; } @@ -147,8 +146,7 @@ class HaScriptPicker extends LitElement { display: flex; flex-direction: horizontal; align-items: center; - padding: 0 8px; - margin: 4px 0; + padding: 0 8px 0 16px; } .script > *:first-child { From 22d8ce0fd90cb012b5acc19396e1ab30cb4bed25 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 20 Feb 2020 14:47:28 -0800 Subject: [PATCH 2/3] Fix creating card (#4947) --- src/panels/lovelace/create-element/create-element-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/create-element/create-element-base.ts b/src/panels/lovelace/create-element/create-element-base.ts index 72c85b9709..4c8879b93c 100644 --- a/src/panels/lovelace/create-element/create-element-base.ts +++ b/src/panels/lovelace/create-element/create-element-base.ts @@ -191,7 +191,7 @@ export const getLovelaceElementClass = async < const tag = `hui-${type}-${tagSuffix}`; const cls = customElements.get(tag); - if (alwaysLoadTypes && type in alwaysLoadTypes) { + if (alwaysLoadTypes && alwaysLoadTypes.has(type)) { return cls; } From e59987a8ed34fc3021ecb2691229b4159b3341d3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 20 Feb 2020 14:47:40 -0800 Subject: [PATCH 3/3] Bumped version to 20200220.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6f704edce6..76e88054d6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20200220.0", + version="20200220.1", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors",