Skip live subscriptions after the card disconnects

This commit is contained in:
2026-09-20 19:14:58 -04:00
parent ff1055fff4
commit 4f6b96ef41
3 changed files with 8 additions and 2 deletions
@@ -1137,7 +1137,7 @@ class Ee extends A {
return !t || typeof t != "object" || typeof t.subscribeEvents != "function" ? null : t;
}
_subscribeLive() {
if (this._subscribed)
if (!this.isConnected || this._subscribed)
return;
const t = this._hassConnection();
if (!t)
@@ -2724,7 +2724,7 @@ class pn extends A {
return !t || typeof t != "object" || typeof t.subscribeEvents != "function" ? null : t;
}
_subscribeLive() {
if (this._subscribed)
if (!this.isConnected || this._subscribed)
return;
const t = this._hassConnection();
if (!t)