Skip to content

Commit

Permalink
Fix render() override
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 committed Jul 24, 2024
1 parent 9690cb8 commit 753c8b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dialogs/config-flow/previews/flow-preview-generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class FlowPreviewGeneric extends LitElement {

@state() protected _preview?: HassEntity;

@state() private _error?: string;
@state() protected _error?: string;

private _unsub?: Promise<UnsubscribeFunc>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { html, nothing } from "lit";
import { html } from "lit";
import { customElement } from "lit/decorators";
import { FlowPreviewGeneric } from "./flow-preview-generic";

@customElement("flow-preview-generic_camera")
class FlowPreviewGenericCamera extends FlowPreviewGeneric {
protected override render() {
if (!this._preview) {
return nothing;
return html`<ha-alert alert-type="error">${this._error}</ha-alert>`;
}

const stillUrl = this._preview.attributes.stillUrl;
Expand Down

0 comments on commit 753c8b0

Please sign in to comment.