mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Refresh cloud status if paying sub info comes in (#1822)
This commit is contained in:
parent
11f4564465
commit
b129d5fb08
@ -190,6 +190,9 @@ class HaConfigCloudAccount extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
|
|
||||||
async _fetchSubscriptionInfo() {
|
async _fetchSubscriptionInfo() {
|
||||||
this._subscription = await this.hass.callWS({ type: "cloud/subscription" });
|
this._subscription = await this.hass.callWS({ type: "cloud/subscription" });
|
||||||
|
if (this._subscription.provider && this.cloudStatus.cloud !== "connected") {
|
||||||
|
this.fire("ha-refresh-cloud-status");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleLogout() {
|
handleLogout() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user