Clean lit-plugin warnings
This commit is contained in:
@@ -41,6 +41,9 @@ export class FrigateCardMenu extends LitElement {
|
||||
@property({ attribute: false })
|
||||
public hass?: HomeAssistant;
|
||||
|
||||
@property({ attribute: true, type: Boolean, reflect: true })
|
||||
public expanded = false;
|
||||
|
||||
set menuConfig(menuConfig: MenuConfig) {
|
||||
this._menuConfig = menuConfig;
|
||||
if (menuConfig) {
|
||||
@@ -58,9 +61,6 @@ export class FrigateCardMenu extends LitElement {
|
||||
@state()
|
||||
protected _menuConfig?: MenuConfig;
|
||||
|
||||
@property({ attribute: true, type: Boolean, reflect: true })
|
||||
protected expanded = false;
|
||||
|
||||
@property({ attribute: false })
|
||||
public buttons: MenuButton[] = [];
|
||||
|
||||
@@ -340,3 +340,9 @@ export class FrigateCardMenu extends LitElement {
|
||||
return unsafeCSS(menuStyle);
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"frigate-card-menu": FrigateCardMenu
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user