Skip to content

Commit

Permalink
Fix no listener margin in flow preview template (home-assistant#17837)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Sep 6, 2023
1 parent 14e6f5e commit ad0e59c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dialogs/config-flow/previews/flow-preview-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
6 changes: 3 additions & 3 deletions src/dialogs/config-flow/previews/flow-preview-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} `;
}

Expand All @@ -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 },
Expand Down

0 comments on commit ad0e59c

Please sign in to comment.