mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Fix attribute-prop mapping (#2794)
This commit is contained in:
parent
32d0e8bf1d
commit
12064a086b
@ -22,9 +22,10 @@ import { HassEntity } from "home-assistant-js-websocket";
|
|||||||
class HaEntitiesPickerLight extends LitElement {
|
class HaEntitiesPickerLight extends LitElement {
|
||||||
@property() public hass?: HomeAssistant;
|
@property() public hass?: HomeAssistant;
|
||||||
@property() public value?: string[];
|
@property() public value?: string[];
|
||||||
@property() public domainFilter?: string;
|
@property({ attribute: "domain-filter" }) public domainFilter?: string;
|
||||||
@property() public pickedEntityLabel?: string;
|
@property({ attribute: "picked-entity-label" })
|
||||||
@property() public pickEntityLabel?: string;
|
public pickedEntityLabel?: string;
|
||||||
|
@property({ attribute: "pick-entity-label" }) public pickEntityLabel?: string;
|
||||||
|
|
||||||
protected render(): TemplateResult | void {
|
protected render(): TemplateResult | void {
|
||||||
if (!this.hass) {
|
if (!this.hass) {
|
||||||
|
@ -55,11 +55,12 @@ const rowRenderer = (
|
|||||||
class HaEntityPicker extends LitElement {
|
class HaEntityPicker extends LitElement {
|
||||||
@property({ type: Boolean }) public autofocus?: boolean;
|
@property({ type: Boolean }) public autofocus?: boolean;
|
||||||
@property({ type: Boolean }) public disabled?: boolean;
|
@property({ type: Boolean }) public disabled?: boolean;
|
||||||
@property({ type: Boolean }) public allowCustomEntity;
|
@property({ type: Boolean, attribute: "allow-custom-entity" })
|
||||||
|
public allowCustomEntity;
|
||||||
@property() public hass?: HomeAssistant;
|
@property() public hass?: HomeAssistant;
|
||||||
@property() public label?: string;
|
@property() public label?: string;
|
||||||
@property() public value?: string;
|
@property() public value?: string;
|
||||||
@property() public domainFilter?: string;
|
@property({ attribute: "domain-filter" }) public domainFilter?: string;
|
||||||
@property() public entityFilter?: HaEntityPickerEntityFilterFunc;
|
@property() public entityFilter?: HaEntityPickerEntityFilterFunc;
|
||||||
@property({ type: Boolean }) private _opened?: boolean;
|
@property({ type: Boolean }) private _opened?: boolean;
|
||||||
@property() private _hass?: HomeAssistant;
|
@property() private _hass?: HomeAssistant;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user