Clean lit-plugin warnings

This commit is contained in:
Dermot Duffy
2022-06-19 07:30:08 +00:00
parent 2027d32e7f
commit ffa31c05ed
28 changed files with 464 additions and 552 deletions
+14 -7
View File
@@ -31,16 +31,16 @@ import { THUMBNAIL_DETAILS_WIDTH_MIN } from './thumbnail.js';
@customElement('frigate-card-gallery')
export class FrigateCardGallery extends LitElement {
@property({ attribute: false })
protected hass?: HomeAssistant;
public hass?: HomeAssistant;
@property({ attribute: false })
protected view?: Readonly<View>;
public view?: Readonly<View>;
@property({ attribute: false })
protected galleryConfig?: GalleryConfig;
public galleryConfig?: GalleryConfig;
@property({ attribute: false })
protected cameras?: Map<string, CameraConfig>;
public cameras?: Map<string, CameraConfig>;
/**
* Master render method.
@@ -108,13 +108,13 @@ export class FrigateCardGallery extends LitElement {
@customElement('frigate-card-gallery-core')
export class FrigateCardGalleryCore extends LitElement {
@property({ attribute: false })
protected hass?: HomeAssistant;
public hass?: HomeAssistant;
@property({ attribute: false })
protected view?: Readonly<View>;
public view?: Readonly<View>;
@property({ attribute: false })
protected galleryConfig?: GalleryConfig;
public galleryConfig?: GalleryConfig;
protected _resizeObserver: ResizeObserver;
@@ -281,3 +281,10 @@ export class FrigateCardGalleryCore extends LitElement {
return unsafeCSS(galleryStyle);
}
}
declare global {
interface HTMLElementTagNameMap {
"frigate-card-gallery-core": FrigateCardGalleryCore
"frigate-card-gallery": FrigateCardGallery
}
}