mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +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) => {
|
private _setPreview = (preview: GroupPreview) => {
|
||||||
const now = new Date().toISOString();
|
const now = new Date().toISOString();
|
||||||
this._preview = {
|
this._preview = {
|
||||||
entity_id: `${this.stepId}.flow_preview`,
|
entity_id: `${this.stepId}.___flow_preview___`,
|
||||||
last_changed: now,
|
last_changed: now,
|
||||||
last_updated: now,
|
last_updated: now,
|
||||||
context: { id: "", parent_id: null, user_id: null },
|
context: { id: "", parent_id: null, user_id: null },
|
||||||
|
@ -110,11 +110,11 @@ class FlowPreviewTemplate extends LitElement {
|
|||||||
</ul>
|
</ul>
|
||||||
`
|
`
|
||||||
: !this._listeners.time
|
: !this._listeners.time
|
||||||
? html`<span class="all_listeners">
|
? html`<p class="all_listeners">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.dialogs.helper_settings.template.no_listeners"
|
"ui.dialogs.helper_settings.template.no_listeners"
|
||||||
)}
|
)}
|
||||||
</span>`
|
</p>`
|
||||||
: nothing} `;
|
: nothing} `;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ class FlowPreviewTemplate extends LitElement {
|
|||||||
this._listeners = preview.listeners;
|
this._listeners = preview.listeners;
|
||||||
const now = new Date().toISOString();
|
const now = new Date().toISOString();
|
||||||
this._preview = {
|
this._preview = {
|
||||||
entity_id: `${this.stepId}.flow_preview`,
|
entity_id: `${this.stepId}.___flow_preview___`,
|
||||||
last_changed: now,
|
last_changed: now,
|
||||||
last_updated: now,
|
last_updated: now,
|
||||||
context: { id: "", parent_id: null, user_id: null },
|
context: { id: "", parent_id: null, user_id: null },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user