File tree 2 files changed +3
-3
lines changed
src/dialogs/config-flow/previews
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class FlowPreviewGeneric extends LitElement {
26
26
27
27
@state ( ) protected _preview ?: HassEntity ;
28
28
29
- @state ( ) private _error ?: string ;
29
+ @state ( ) protected _error ?: string ;
30
30
31
31
private _unsub ?: Promise < UnsubscribeFunc > ;
32
32
Original file line number Diff line number Diff line change 1
- import { html , nothing } from "lit" ;
1
+ import { html } from "lit" ;
2
2
import { customElement } from "lit/decorators" ;
3
3
import { FlowPreviewGeneric } from "./flow-preview-generic" ;
4
4
5
5
@customElement ( "flow-preview-generic_camera" )
6
6
class FlowPreviewGenericCamera extends FlowPreviewGeneric {
7
7
protected override render ( ) {
8
8
if ( ! this . _preview ) {
9
- return nothing ;
9
+ return html ` < ha-alert alert-type =" error " > ${ this . _error } </ ha-alert > ` ;
10
10
}
11
11
12
12
const stillUrl = this . _preview . attributes . stillUrl ;
You can’t perform that action at this time.
0 commit comments