mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Fixed spelling of _(un)subscribeBootstrapIntegrations() (#14439)
Fixed spelling of (un)subscribeBootstrapIntegrations()
This commit is contained in:
parent
15a0847db8
commit
9bae4a646d
@ -44,18 +44,18 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
|
|||||||
text:
|
text:
|
||||||
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
||||||
action: () => {
|
action: () => {
|
||||||
this._unsubscribeBootstrapIntergrations();
|
this._unsubscribeBootstrapIntegrations();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this._subscribeBootstrapIntergrations();
|
this._subscribeBootstrapIntegrations();
|
||||||
} else if (
|
} else if (
|
||||||
oldHass?.config &&
|
oldHass?.config &&
|
||||||
oldHass.config.state === STATE_NOT_RUNNING &&
|
oldHass.config.state === STATE_NOT_RUNNING &&
|
||||||
(this.hass!.config.state === STATE_STARTING ||
|
(this.hass!.config.state === STATE_STARTING ||
|
||||||
this.hass!.config.state === STATE_RUNNING)
|
this.hass!.config.state === STATE_RUNNING)
|
||||||
) {
|
) {
|
||||||
this._unsubscribeBootstrapIntergrations();
|
this._unsubscribeBootstrapIntegrations();
|
||||||
showToast(this, {
|
showToast(this, {
|
||||||
message: this.hass!.localize("ui.notification_toast.started"),
|
message: this.hass!.localize("ui.notification_toast.started"),
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
@ -97,7 +97,7 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
|
|||||||
text:
|
text:
|
||||||
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
||||||
action: () => {
|
action: () => {
|
||||||
this._unsubscribeBootstrapIntergrations();
|
this._unsubscribeBootstrapIntegrations();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -123,20 +123,20 @@ export default <T extends Constructor<HassBaseEl>>(superClass: T) =>
|
|||||||
text:
|
text:
|
||||||
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
this.hass!.localize("ui.notification_toast.dismiss") || "Dismiss",
|
||||||
action: () => {
|
action: () => {
|
||||||
this._unsubscribeBootstrapIntergrations();
|
this._unsubscribeBootstrapIntegrations();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _unsubscribeBootstrapIntergrations() {
|
private _unsubscribeBootstrapIntegrations() {
|
||||||
if (this._subscribedBootstrapIntegrations) {
|
if (this._subscribedBootstrapIntegrations) {
|
||||||
this._subscribedBootstrapIntegrations.then((unsub) => unsub());
|
this._subscribedBootstrapIntegrations.then((unsub) => unsub());
|
||||||
this._subscribedBootstrapIntegrations = undefined;
|
this._subscribedBootstrapIntegrations = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _subscribeBootstrapIntergrations() {
|
private _subscribeBootstrapIntegrations() {
|
||||||
if (!this.hass) {
|
if (!this.hass) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user