Fixed spelling of _(un)subscribeBootstrapIntegrations() (#14439)

Fixed spelling of (un)subscribeBootstrapIntegrations()
This commit is contained in:
Jani Lahti 2022-11-24 12:28:24 +02:00 committed by GitHub
parent 15a0847db8
commit 9bae4a646d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }