mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
🔨 Update value
attributes to properties (#2269)
This commit is contained in:
parent
4a455e9147
commit
2059e36dd6
@ -126,7 +126,7 @@ class HuiShoppingListCard extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-item-body>
|
||||
<paper-input
|
||||
no-label-float
|
||||
value="${item.name}"
|
||||
.value="${item.name}"
|
||||
.itemId="${item.id}"
|
||||
@change="${this._saveEdit}"
|
||||
></paper-input>
|
||||
@ -177,7 +177,7 @@ class HuiShoppingListCard extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-item-body>
|
||||
<paper-input
|
||||
no-label-float
|
||||
value="${item.name}"
|
||||
.value="${item.name}"
|
||||
.itemId="${item.id}"
|
||||
@change="${this._saveEdit}"
|
||||
></paper-input>
|
||||
|
@ -63,7 +63,7 @@ export class HuiAlarmPanelCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Name"
|
||||
value="${this._name}"
|
||||
.value="${this._name}"
|
||||
.configValue="${"name"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -73,7 +73,7 @@ export class HuiEntitiesCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue="${"title"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -86,7 +86,7 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue=${"title"}
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -102,7 +102,7 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Unit"
|
||||
value="${this._unit}"
|
||||
.value="${this._unit}"
|
||||
.configValue=${"unit"}
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -117,14 +117,14 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-input
|
||||
type="number"
|
||||
label="Minimum"
|
||||
value="${this._min}"
|
||||
.value="${this._min}"
|
||||
.configValue=${"min"}
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
type="number"
|
||||
label="Maximum"
|
||||
value="${this._max}"
|
||||
.value="${this._max}"
|
||||
.configValue=${"max"}
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -139,21 +139,21 @@ export class HuiGaugeCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-input
|
||||
type="number"
|
||||
label="Green"
|
||||
value="${this._severity ? this._severity.green : 0}"
|
||||
.value="${this._severity ? this._severity.green : 0}"
|
||||
.configValue=${"green"}
|
||||
@value-changed="${this._severityChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
type="number"
|
||||
label="Yellow"
|
||||
value="${this._severity ? this._severity.yellow : 0}"
|
||||
.value="${this._severity ? this._severity.yellow : 0}"
|
||||
.configValue=${"yellow"}
|
||||
@value-changed="${this._severityChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
type="number"
|
||||
label="Red"
|
||||
value="${this._severity ? this._severity.red : 0}"
|
||||
.value="${this._severity ? this._severity.red : 0}"
|
||||
.configValue=${"red"}
|
||||
@value-changed="${this._severityChanged}"
|
||||
></paper-input>
|
||||
|
@ -79,7 +79,7 @@ export class HuiGlanceCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue="${"title"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -93,7 +93,7 @@ export class HuiGlanceCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-input
|
||||
label="Columns"
|
||||
type="number"
|
||||
value="${this._columns}"
|
||||
.value="${this._columns}"
|
||||
.configValue="${"columns"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -58,7 +58,7 @@ export class HuiLightCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Name"
|
||||
value="${this._name}"
|
||||
.value="${this._name}"
|
||||
.configValue="${"name"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -51,13 +51,13 @@ export class HuiMarkdownCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue="${"title"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<paper-textarea
|
||||
label="Content"
|
||||
value="${this._content}"
|
||||
.value="${this._content}"
|
||||
.configValue="${"content"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
autocapitalize="none"
|
||||
|
@ -89,7 +89,7 @@ export class HuiSensorCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Name"
|
||||
value="${this._name}"
|
||||
.value="${this._name}"
|
||||
.configValue="${"name"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -105,7 +105,7 @@ export class HuiSensorCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Icon"
|
||||
value="${this._icon}"
|
||||
.value="${this._icon}"
|
||||
.configValue="${"icon"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -131,14 +131,14 @@ export class HuiSensorCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="side-by-side">
|
||||
<paper-input
|
||||
label="Units"
|
||||
value="${this._unit}"
|
||||
.value="${this._unit}"
|
||||
.configValue="${"unit"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
label="Graph Detail"
|
||||
type="number"
|
||||
value="${this._detail}"
|
||||
.value="${this._detail}"
|
||||
.configValue="${"detail"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
@ -153,7 +153,7 @@ export class HuiSensorCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<paper-input
|
||||
label="Hours To Show"
|
||||
type="number"
|
||||
value="${this._hours_to_show}"
|
||||
.value="${this._hours_to_show}"
|
||||
.configValue="${"hours_to_show"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -43,7 +43,7 @@ export class HuiShoppingListEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue="${"title"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -57,7 +57,7 @@ export class HuiThermostatCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Name"
|
||||
value="${this._name}"
|
||||
.value="${this._name}"
|
||||
.configValue="${"name"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
@ -69,19 +69,19 @@ export class HuiViewEditor extends hassLocalizeLitMixin(LitElement) {
|
||||
<div class="card-config">
|
||||
<paper-input
|
||||
label="Title"
|
||||
value="${this._title}"
|
||||
.value="${this._title}"
|
||||
.configValue="${"title"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
label="Icon"
|
||||
value="${this._icon}"
|
||||
.value="${this._icon}"
|
||||
.configValue="${"icon"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
<paper-input
|
||||
label="URL Path"
|
||||
value="${this._path}"
|
||||
.value="${this._path}"
|
||||
.configValue="${"path"}"
|
||||
@value-changed="${this._valueChanged}"
|
||||
></paper-input>
|
||||
|
Loading…
x
Reference in New Issue
Block a user