Replace all private properties with internalProperty decorator (#6386)

This commit is contained in:
Bram Kragten
2020-07-15 06:38:36 +02:00
committed by GitHub
parent 9cd2d0df93
commit f8c5eeab5d
357 changed files with 1236 additions and 920 deletions

View File

@@ -7,6 +7,7 @@ import {
html,
LitElement,
property,
internalProperty,
TemplateResult,
} from "lit-element";
import { classMap } from "lit-html/directives/class-map";
@@ -20,11 +21,11 @@ import { fireEvent } from "../../common/dom/fire_event";
@customElement("dialog-box")
class DialogBox extends LitElement {
@property() public hass!: HomeAssistant;
@property({ attribute: false }) public hass!: HomeAssistant;
@property() private _params?: DialogParams;
@internalProperty() private _params?: DialogParams;
@property() private _value?: string;
@internalProperty() private _value?: string;
public async showDialog(params: DialogParams): Promise<void> {
this._params = params;