mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 03:19:44 +00:00
Replace all private properties with internalProperty decorator (#6386)
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
html,
|
||||
LitElement,
|
||||
property,
|
||||
internalProperty,
|
||||
query,
|
||||
TemplateResult,
|
||||
} from "lit-element";
|
||||
@@ -23,17 +24,17 @@ import type { HomeAssistant } from "../../../../types";
|
||||
|
||||
@customElement("ha-input_select-form")
|
||||
class HaInputSelectForm extends LitElement {
|
||||
@property() public hass!: HomeAssistant;
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property() public new?: boolean;
|
||||
|
||||
private _item?: InputSelect;
|
||||
|
||||
@property() private _name!: string;
|
||||
@internalProperty() private _name!: string;
|
||||
|
||||
@property() private _icon!: string;
|
||||
@internalProperty() private _icon!: string;
|
||||
|
||||
@property() private _options: string[] = [];
|
||||
@internalProperty() private _options: string[] = [];
|
||||
|
||||
@query("#option_input") private _optionInput?: PaperInputElement;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user