mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Fix no listener margin in flow preview template (#17837)
This commit is contained in:
parent
14e6f5e8ca
commit
ad0e59c8f4
@ -49,7 +49,7 @@ class FlowPreviewGroup extends LitElement {
|
||||
private _setPreview = (preview: GroupPreview) => {
|
||||
const now = new Date().toISOString();
|
||||
this._preview = {
|
||||
entity_id: `${this.stepId}.flow_preview`,
|
||||
entity_id: `${this.stepId}.___flow_preview___`,
|
||||
last_changed: now,
|
||||
last_updated: now,
|
||||
context: { id: "", parent_id: null, user_id: null },
|
||||
|
@ -110,11 +110,11 @@ class FlowPreviewTemplate extends LitElement {
|
||||
</ul>
|
||||
`
|
||||
: !this._listeners.time
|
||||
? html`<span class="all_listeners">
|
||||
? html`<p class="all_listeners">
|
||||
${this.hass.localize(
|
||||
"ui.dialogs.helper_settings.template.no_listeners"
|
||||
)}
|
||||
</span>`
|
||||
</p>`
|
||||
: nothing} `;
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ class FlowPreviewTemplate extends LitElement {
|
||||
this._listeners = preview.listeners;
|
||||
const now = new Date().toISOString();
|
||||
this._preview = {
|
||||
entity_id: `${this.stepId}.flow_preview`,
|
||||
entity_id: `${this.stepId}.___flow_preview___`,
|
||||
last_changed: now,
|
||||
last_updated: now,
|
||||
context: { id: "", parent_id: null, user_id: null },
|
||||
|
Loading…
x
Reference in New Issue
Block a user