diff --git a/cast/src/launcher/layout/hc-connect.ts b/cast/src/launcher/layout/hc-connect.ts index bd1a5f743606..0173f99c3f95 100644 --- a/cast/src/launcher/layout/hc-connect.ts +++ b/cast/src/launcher/layout/hc-connect.ts @@ -1,6 +1,5 @@ import "@material/mwc-button"; import { mdiCastConnected, mdiCast } from "@mdi/js"; -import "@polymer/paper-input/paper-input"; import { Auth, Connection, @@ -24,6 +23,7 @@ import "../../../../src/components/ha-svg-icon"; import "../../../../src/layouts/hass-loading-screen"; import { registerServiceWorker } from "../../../../src/util/register-service-worker"; import "./hc-layout"; +import "../../../../src/components/ha-textfield"; const seeFAQ = (qid) => html` See the FAQ for more @@ -116,13 +116,11 @@ export class HcConnect extends LitElement { To get started, enter your Home Assistant URL and click authorize. If you want a preview instead, click the show demo button.

-

- -

+ ${this.error ? html`

${this.error}

` : ""}
@@ -196,7 +194,7 @@ export class HcConnect extends LitElement { } private async _handleConnect() { - const inputEl = this.shadowRoot!.querySelector("paper-input")!; + const inputEl = this.shadowRoot!.querySelector("ha-textfield")!; const value = inputEl.value || ""; this.error = undefined; @@ -315,6 +313,10 @@ export class HcConnect extends LitElement { .spacer { flex: 1; } + + ha-textfield { + width: 100%; + } `; } }