@@ -61,6 +66,13 @@
on-tap='saveEntity'
disabled='[[computeShowPlaceholder(formState)]]'
>SAVE
+
+ DELETE
+
@@ -77,11 +89,21 @@ Polymer({
observer: 'hassChanged',
},
+ label: {
+ type: String,
+ value: 'Device',
+ },
+
entities: {
type: Array,
observer: 'entitiesChanged',
},
+ allowDelete: {
+ type: Boolean,
+ value: false,
+ },
+
selectedEntity: {
type: Number,
value: -1,
diff --git a/panels/config/ha-form-style.html b/panels/config/ha-form-style.html
index 6754b1db9d..b4bf334aed 100644
--- a/panels/config/ha-form-style.html
+++ b/panels/config/ha-form-style.html
@@ -4,7 +4,7 @@
.form-group {
@apply(--layout-horizontal);
@apply(--layout-center);
- padding: 4px 16px;
+ padding: 8px 16px;
}
.form-group label {
@@ -14,6 +14,15 @@
.form-group .form-control {
@apply(--layout-flex-1);
}
+
+ .form-group.vertical {
+ @apply(--layout-vertical);
+ @apply(--layout-start);
+ }
+
+ paper-dropdown-menu.form-control {
+ margin: -9px 0;
+ }
diff --git a/panels/config/ha-panel-config.html b/panels/config/ha-panel-config.html
index aa149ecd48..be37fc10f9 100644
--- a/panels/config/ha-panel-config.html
+++ b/panels/config/ha-panel-config.html
@@ -5,6 +5,7 @@
+
@@ -38,6 +39,11 @@