mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Fix dev
This commit is contained in:
parent
1b282b65b7
commit
fe5f9576c6
@ -1,15 +1,7 @@
|
|||||||
import {
|
|
||||||
css,
|
|
||||||
CSSResult,
|
|
||||||
customElement,
|
|
||||||
html,
|
|
||||||
internalProperty,
|
|
||||||
LitElement,
|
|
||||||
property,
|
|
||||||
TemplateResult,
|
|
||||||
} from "lit-element";
|
|
||||||
import "@material/mwc-button";
|
import "@material/mwc-button";
|
||||||
import "@polymer/paper-input/paper-input";
|
import "@polymer/paper-input/paper-input";
|
||||||
|
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
||||||
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import { createCloseHeading } from "../../components/ha-dialog";
|
import { createCloseHeading } from "../../components/ha-dialog";
|
||||||
import { haStyleDialog } from "../../resources/styles";
|
import { haStyleDialog } from "../../resources/styles";
|
||||||
@ -22,10 +14,9 @@ const QR_LOGO_URL = "/static/icons/favicon-192x192.png";
|
|||||||
export class HaLongLivedAccessTokenDialog extends LitElement {
|
export class HaLongLivedAccessTokenDialog extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property({ attribute: false })
|
@state() private _params?: LongLivedAccessTokenDialogParams;
|
||||||
private _params?: LongLivedAccessTokenDialogParams;
|
|
||||||
|
|
||||||
@internalProperty() private _qrCode?: TemplateResult;
|
@state() private _qrCode?: TemplateResult;
|
||||||
|
|
||||||
public showDialog(params: LongLivedAccessTokenDialogParams): void {
|
public showDialog(params: LongLivedAccessTokenDialogParams): void {
|
||||||
this._params = params;
|
this._params = params;
|
||||||
@ -96,7 +87,7 @@ export class HaLongLivedAccessTokenDialog extends LitElement {
|
|||||||
this._qrCode = html`<img src=${canvas.toDataURL()}></img>`;
|
this._qrCode = html`<img src=${canvas.toDataURL()}></img>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResultGroup {
|
||||||
return [
|
return [
|
||||||
haStyleDialog,
|
haStyleDialog,
|
||||||
css`
|
css`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user