Add compatibility for Lit 2.0 (#8878)

This commit is contained in:
Bram Kragten
2021-05-07 22:16:14 +02:00
committed by GitHub
parent 0f58214ba1
commit 9f032a61a9
521 changed files with 2512 additions and 2510 deletions

View File

@@ -3,10 +3,10 @@ import "@polymer/paper-item/paper-item-body";
import { UnsubscribeFunc } from "home-assistant-js-websocket";
import {
css,
CSSResult,
CSSResultGroup,
customElement,
html,
internalProperty,
state,
LitElement,
property,
PropertyValues,
@@ -111,7 +111,7 @@ export class HaDevicePicker extends SubscribeMixin(LitElement) {
@property({ type: Boolean }) public disabled?: boolean;
@internalProperty() private _opened?: boolean;
@state() private _opened?: boolean;
@query("ha-combo-box", true) public comboBox!: HaComboBox;
@@ -326,7 +326,7 @@ export class HaDevicePicker extends SubscribeMixin(LitElement) {
}, 0);
}
static get styles(): CSSResult {
static get styles(): CSSResultGroup {
return css`
paper-input > mwc-icon-button {
--mdc-icon-button-size: 24px;