init
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{ev as t,ew as e,l as i}from"./card-b98d578d.js";import{C as n}from"./engine-generic-75ad9390.js";class r extends n{constructor(){super(...arguments),this._entity=null}async initialize(n){const r=this.getConfig(),s=t(r),a=s?await n.entityRegistryManager.getEntity(n.hass,s):null;if(!a||!s)throw new e(i("error.no_camera_entity"),r);return this._entity=a,await super.initialize(n)}getEntity(){return this._entity}}export{r as E};
|
||||
Reference in New Issue
Block a user