Avoid use of ExtendedHomeAssistant wherever possible.

This commit is contained in:
Dermot Duffy
2022-04-18 18:04:51 -07:00
parent b27dea67b1
commit 22c2b022e7
13 changed files with 35 additions and 34 deletions
+2 -2
View File
@@ -132,7 +132,7 @@ console.info(
@customElement('frigate-card')
export class FrigateCard extends LitElement {
@property({ attribute: false })
protected _hass?: HomeAssistant & ExtendedHomeAssistant;
protected _hass?: ExtendedHomeAssistant;
// The main base configuration object. For most usecases use getConfig() to
// get the correct configuration (which will return overrides as appropriate).
@@ -188,7 +188,7 @@ export class FrigateCard extends LitElement {
/**
* Set the Home Assistant object.
*/
set hass(hass: HomeAssistant & ExtendedHomeAssistant) {
set hass(hass: ExtendedHomeAssistant) {
this._hass = hass;
// Manually set hass in the menu, elements and image. This is to allow these