mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Change title to name (#2425)
This commit is contained in:
parent
3f6a8cac80
commit
ddb050d1fd
@ -17,7 +17,7 @@ import "../../components/hui-entity-editor";
|
|||||||
|
|
||||||
const cardConfigStruct = struct({
|
const cardConfigStruct = struct({
|
||||||
type: "string",
|
type: "string",
|
||||||
title: "string?",
|
name: "string?",
|
||||||
entity: "string?",
|
entity: "string?",
|
||||||
unit: "string?",
|
unit: "string?",
|
||||||
min: "number?",
|
min: "number?",
|
||||||
@ -42,8 +42,8 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
|||||||
return { hass: {}, _config: {} };
|
return { hass: {}, _config: {} };
|
||||||
}
|
}
|
||||||
|
|
||||||
get _title(): string {
|
get _name(): string {
|
||||||
return this._config!.title || "";
|
return this._config!.name || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
get _entity(): string {
|
get _entity(): string {
|
||||||
@ -80,9 +80,9 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
|||||||
<div class="card-config">
|
<div class="card-config">
|
||||||
<div class="side-by-side">
|
<div class="side-by-side">
|
||||||
<paper-input
|
<paper-input
|
||||||
label="Title"
|
label="Name"
|
||||||
.value="${this._title}"
|
.value="${this._name}"
|
||||||
.configValue=${"title"}
|
.configValue=${"name"}
|
||||||
@value-changed="${this._valueChanged}"
|
@value-changed="${this._valueChanged}"
|
||||||
></paper-input>
|
></paper-input>
|
||||||
<ha-entity-picker
|
<ha-entity-picker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user