Fix mode selection in automation editor (#11707)

This commit is contained in:
Bram Kragten 2022-02-16 21:47:49 +01:00 committed by GitHub
parent 89f4fe9d20
commit 9dec0f8ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -85,6 +85,7 @@ export class HaManualAutomationEditor extends LitElement {
)}
.value=${this.config.mode ? MODES.indexOf(this.config.mode) : 0}
@selected=${this._modeChanged}
fixedMenuPosition
>
${MODES.map(
(mode) => html`
@ -317,6 +318,9 @@ export class HaManualAutomationEditor extends LitElement {
ha-entity-toggle {
margin-right: 8px;
}
mwc-select {
margin-top: 8px;
}
`,
];
}

View File

@ -1,4 +1,4 @@
import { html, LitElement } from "lit";
import { css, html, LitElement } from "lit";
import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../../../common/dom/fire_event";
@ -150,6 +150,13 @@ export class HaDeviceTrigger extends LitElement {
`ui.panel.config.automation.editor.triggers.type.device.extra_fields.${schema.name}`
) || schema.name;
}
static styles = css`
ha-device-picker {
display: block;
margin-bottom: 8px;
}
`;
}
declare global {