fix: Ensure no camera outlives a failed initialization (#2657)

This commit is contained in:
Dermot Duffy
2026-08-04 21:33:46 -07:00
committed by GitHub
parent 80ec92e3b2
commit 9f88aacefe
13 changed files with 646 additions and 123 deletions
+7
View File
@@ -491,6 +491,13 @@ export class MountedCard {
this.card.hass = this._hass.getHASS();
}
/**
* How many Home Assistant event subscriptions the card currently holds open.
*/
public getOpenEventSubscriptionCount(): number {
return this._hass.getOpenEventSubscriptionCount();
}
/**
* Hand the card a new `hass` with nothing in it changed.
*/