mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 14:56:37 +00:00
Show why relayer is reconnecting (#11732)
This commit is contained in:
parent
8999ca2ea0
commit
728c391b5d
@ -47,6 +47,7 @@ export interface CloudPreferences {
|
|||||||
export interface CloudStatusLoggedIn {
|
export interface CloudStatusLoggedIn {
|
||||||
logged_in: true;
|
logged_in: true;
|
||||||
cloud: "disconnected" | "connecting" | "connected";
|
cloud: "disconnected" | "connecting" | "connected";
|
||||||
|
cloud_last_disconnect_reason: { clean: boolean; reason: string } | null;
|
||||||
email: string;
|
email: string;
|
||||||
google_registered: boolean;
|
google_registered: boolean;
|
||||||
google_entities: EntityFilter;
|
google_entities: EntityFilter;
|
||||||
|
@ -10,6 +10,7 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
|||||||
import { computeRTLDirection } from "../../../../common/util/compute_rtl";
|
import { computeRTLDirection } from "../../../../common/util/compute_rtl";
|
||||||
import "../../../../components/buttons/ha-call-api-button";
|
import "../../../../components/buttons/ha-call-api-button";
|
||||||
import "../../../../components/ha-card";
|
import "../../../../components/ha-card";
|
||||||
|
import "../../../../components/ha-alert";
|
||||||
import "../../../../components/ha-button-menu";
|
import "../../../../components/ha-button-menu";
|
||||||
import "../../../../components/ha-icon-button";
|
import "../../../../components/ha-icon-button";
|
||||||
import { debounce } from "../../../../common/util/debounce";
|
import { debounce } from "../../../../common/util/debounce";
|
||||||
@ -106,6 +107,17 @@ export class CloudAccount extends SubscribeMixin(LitElement) {
|
|||||||
</paper-item-body>
|
</paper-item-body>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
${this.cloudStatus.cloud === "connecting" &&
|
||||||
|
this.cloudStatus.cloud_last_disconnect_reason
|
||||||
|
? html`
|
||||||
|
<ha-alert
|
||||||
|
alert-type="warning"
|
||||||
|
.title=${this.cloudStatus.cloud_last_disconnect_reason
|
||||||
|
.reason}
|
||||||
|
></ha-alert>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
|
|
||||||
<div class="account-row">
|
<div class="account-row">
|
||||||
<paper-item-body>
|
<paper-item-body>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user