mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 03:19:44 +00:00
Add compatibility for Lit 2.0 (#8878)
This commit is contained in:
@@ -5,10 +5,10 @@ import "@polymer/paper-item/paper-item";
|
||||
import "@polymer/paper-item/paper-item-body";
|
||||
import {
|
||||
css,
|
||||
CSSResult,
|
||||
CSSResultGroup,
|
||||
customElement,
|
||||
html,
|
||||
internalProperty,
|
||||
state,
|
||||
LitElement,
|
||||
property,
|
||||
query,
|
||||
@@ -30,11 +30,11 @@ class HaInputSelectForm extends LitElement {
|
||||
|
||||
private _item?: InputSelect;
|
||||
|
||||
@internalProperty() private _name!: string;
|
||||
@state() private _name!: string;
|
||||
|
||||
@internalProperty() private _icon!: string;
|
||||
@state() private _icon!: string;
|
||||
|
||||
@internalProperty() private _options: string[] = [];
|
||||
@state() private _options: string[] = [];
|
||||
|
||||
@query("#option_input", true) private _optionInput?: PaperInputElement;
|
||||
|
||||
@@ -190,7 +190,7 @@ class HaInputSelectForm extends LitElement {
|
||||
});
|
||||
}
|
||||
|
||||
static get styles(): CSSResult[] {
|
||||
static get styles(): CSSResultGroup {
|
||||
return [
|
||||
haStyle,
|
||||
css`
|
||||
|
||||
Reference in New Issue
Block a user