fix: Ensure no camera outlives a failed initialization (#2657)
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user