mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Add compatibility for Lit 2.0 (#8878)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { mdiDrag } from "@mdi/js";
|
||||
import {
|
||||
css,
|
||||
CSSResult,
|
||||
CSSResultGroup,
|
||||
customElement,
|
||||
html,
|
||||
internalProperty,
|
||||
state,
|
||||
LitElement,
|
||||
property,
|
||||
PropertyValues,
|
||||
@@ -32,9 +32,9 @@ export class HuiEntityEditor extends LitElement {
|
||||
|
||||
@property() protected label?: string;
|
||||
|
||||
@internalProperty() private _attached = false;
|
||||
@state() private _attached = false;
|
||||
|
||||
@internalProperty() private _renderEmptySortable = false;
|
||||
@state() private _renderEmptySortable = false;
|
||||
|
||||
private _sortable?: Sortable;
|
||||
|
||||
@@ -181,7 +181,7 @@ export class HuiEntityEditor extends LitElement {
|
||||
fireEvent(this, "entities-changed", { entities: newConfigEntities });
|
||||
}
|
||||
|
||||
static get styles(): CSSResult[] {
|
||||
static get styles(): CSSResultGroup {
|
||||
return [
|
||||
sortableStyles,
|
||||
css`
|
||||
|
||||
Reference in New Issue
Block a user