mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
Add compatibility for Lit 2.0 (#8878)
This commit is contained in:
@@ -3,10 +3,10 @@ import "@polymer/paper-radio-button/paper-radio-button";
|
||||
import "@polymer/paper-radio-group/paper-radio-group";
|
||||
import {
|
||||
css,
|
||||
CSSResult,
|
||||
CSSResultGroup,
|
||||
customElement,
|
||||
html,
|
||||
internalProperty,
|
||||
state,
|
||||
LitElement,
|
||||
property,
|
||||
TemplateResult,
|
||||
@@ -25,11 +25,11 @@ class HaInputDateTimeForm extends LitElement {
|
||||
|
||||
private _item?: InputDateTime;
|
||||
|
||||
@internalProperty() private _name!: string;
|
||||
@state() private _name!: string;
|
||||
|
||||
@internalProperty() private _icon!: string;
|
||||
@state() private _icon!: string;
|
||||
|
||||
@internalProperty() private _mode!: "date" | "time" | "datetime";
|
||||
@state() private _mode!: "date" | "time" | "datetime";
|
||||
|
||||
set item(item: InputDateTime) {
|
||||
this._item = item;
|
||||
@@ -145,7 +145,7 @@ class HaInputDateTimeForm extends LitElement {
|
||||
});
|
||||
}
|
||||
|
||||
static get styles(): CSSResult[] {
|
||||
static get styles(): CSSResultGroup {
|
||||
return [
|
||||
haStyle,
|
||||
css`
|
||||
|
||||
Reference in New Issue
Block a user