-
- ${this.hass.localize("ui.auth_store.ask")}
-
-
-
- ${this.hass.localize("ui.auth_store.decline")}
-
-
- ${this.hass.localize("ui.auth_store.confirm")}
-
-
-
- `;
- }
-
- firstUpdated() {
- this.classList.toggle("small", window.innerWidth < 600);
- }
-
- private _save(): void {
- enableWrite();
- this._dismiss();
- }
-
- private _dismiss(): void {
- const card = this.shadowRoot!.querySelector("ha-card") as HaCard;
- card.style.bottom = `-${card.offsetHeight + 8}px`;
- setTimeout(() => this.parentNode!.removeChild(this), 300);
- }
-
- static get styles() {
- return css`
- ha-card {
- position: fixed;
- padding: 8px 0;
- bottom: 16px;
- right: 16px;
- transition: bottom 0.25s;
- --ha-card-box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
- }
-
- .card-actions {
- text-align: right;
- border-top: 0;
- }
-
- :host(.small) ha-card {
- bottom: 0;
- left: 0;
- right: 0;
- }
- `;
- }
-}
-
-customElements.define("ha-store-auth-card", HaStoreAuth);
-
-declare global {
- interface HTMLElementTagNameMap {
- "ha-store-auth-card": HaStoreAuth;
- }
-}
diff --git a/src/state/auth-mixin.ts b/src/state/auth-mixin.ts
index 7b210cb2e9..5d7ad4834d 100644
--- a/src/state/auth-mixin.ts
+++ b/src/state/auth-mixin.ts
@@ -1,4 +1,3 @@
-import { askWrite } from "../common/auth/token_storage";
import { subscribeUser, userCollection } from "../data/ws-user";
import { Constructor } from "../types";
import { clearState } from "../util/ha-pref-storage";
@@ -26,16 +25,6 @@ export default