mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-15 14:00:38 +00:00
Add compatibility for Lit 2.0 (#8878)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import "@material/mwc-button/mwc-button";
|
||||
import {
|
||||
css,
|
||||
CSSResult,
|
||||
CSSResultGroup,
|
||||
customElement,
|
||||
html,
|
||||
internalProperty,
|
||||
state,
|
||||
LitElement,
|
||||
property,
|
||||
PropertyValues,
|
||||
@@ -22,7 +22,7 @@ import { ActionRowConfig, LovelaceRow } from "./types";
|
||||
class HuiScriptEntityRow extends LitElement implements LovelaceRow {
|
||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||
|
||||
@internalProperty() private _config?: ActionRowConfig;
|
||||
@state() private _config?: ActionRowConfig;
|
||||
|
||||
public setConfig(config: ActionRowConfig): void {
|
||||
if (!config) {
|
||||
@@ -78,7 +78,7 @@ class HuiScriptEntityRow extends LitElement implements LovelaceRow {
|
||||
`;
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
static get styles(): CSSResultGroup {
|
||||
return css`
|
||||
mwc-button:last-child {
|
||||
margin-right: -0.57em;
|
||||
|
||||
Reference in New Issue
Block a user