mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Fix mode selection in automation editor (#11707)
This commit is contained in:
parent
89f4fe9d20
commit
9dec0f8ccd
@ -85,6 +85,7 @@ export class HaManualAutomationEditor extends LitElement {
|
|||||||
)}
|
)}
|
||||||
.value=${this.config.mode ? MODES.indexOf(this.config.mode) : 0}
|
.value=${this.config.mode ? MODES.indexOf(this.config.mode) : 0}
|
||||||
@selected=${this._modeChanged}
|
@selected=${this._modeChanged}
|
||||||
|
fixedMenuPosition
|
||||||
>
|
>
|
||||||
${MODES.map(
|
${MODES.map(
|
||||||
(mode) => html`
|
(mode) => html`
|
||||||
@ -317,6 +318,9 @@ export class HaManualAutomationEditor extends LitElement {
|
|||||||
ha-entity-toggle {
|
ha-entity-toggle {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
mwc-select {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { html, LitElement } from "lit";
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import memoizeOne from "memoize-one";
|
import memoizeOne from "memoize-one";
|
||||||
import { fireEvent } from "../../../../../common/dom/fire_event";
|
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}`
|
`ui.panel.config.automation.editor.triggers.type.device.extra_fields.${schema.name}`
|
||||||
) || schema.name;
|
) || schema.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static styles = css`
|
||||||
|
ha-device-picker {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user