Upgrade to Lit 2 (#9199)

This commit is contained in:
Bram Kragten
2021-05-18 16:37:53 +02:00
committed by GitHub
parent 245bb639f2
commit bc92c0b052
691 changed files with 2328 additions and 5179 deletions

View File

@@ -3,21 +3,20 @@ import {
css,
CSSResultGroup,
html,
state,
LitElement,
property,
PropertyValues,
TemplateResult,
} from "lit-element";
} from "lit";
import { property, state } from "lit/decorators";
import { STATES_OFF } from "../../common/const";
import { computeStateDomain } from "../../common/entity/compute_state_domain";
import { computeStateName } from "../../common/entity/compute_state_name";
import { UNAVAILABLE, UNAVAILABLE_STATES } from "../../data/entity";
import { forwardHaptic } from "../../data/haptics";
import { HomeAssistant } from "../../types";
import "../ha-formfield";
import "../ha-icon-button";
import "../ha-switch";
import "../ha-formfield";
const isOn = (stateObj?: HassEntity) =>
stateObj !== undefined &&