diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index df6ea2e0b97d..fea62601a4f1 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -1,3 +1,4 @@ +/* eslint-disable lit/prefer-static-styles */ import "@material/mwc-button"; import { genClientId } from "home-assistant-js-websocket"; import { CSSResultGroup, html, LitElement, nothing, PropertyValues } from "lit"; @@ -74,7 +75,19 @@ export class HaAuthFlow extends LitElement { } protected render() { - return html`
`; + return html` + + + `; } protected firstUpdated(changedProps: PropertyValues) { @@ -379,7 +392,7 @@ export class HaAuthFlow extends LitElement { } static get styles(): CSSResultGroup { - // No shadow dom, styles should be in authorize.html.template + // No shadow dom, styles should be in + ${super.render()} + `; + } + static get styles(): CSSResultGroup { - // No shadow dom, styles should be in authorize.html.template + // No shadow dom, styles should be in +${this.localize("ui.panel.page-authorize.initializing")}
`; } @@ -72,6 +87,25 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) { const app = this.clientId && this.clientId in appNames; return html` + + ${!this._ownInstance ? html`