mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix more info translation keys (#17749)
This commit is contained in:
parent
fa788a8223
commit
806cebb024
@ -142,7 +142,7 @@ class MoreInfoClimate extends LitElement {
|
|||||||
.selected=${this._mainControl === "temperature"}
|
.selected=${this._mainControl === "temperature"}
|
||||||
.disabled=${this.stateObj!.state === UNAVAILABLE}
|
.disabled=${this.stateObj!.state === UNAVAILABLE}
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.dialogs.more_info_control.light.color"
|
"ui.dialogs.more_info_control.climate.temperature"
|
||||||
)}
|
)}
|
||||||
.control=${"temperature"}
|
.control=${"temperature"}
|
||||||
@click=${this._setMainControl}
|
@click=${this._setMainControl}
|
||||||
@ -153,7 +153,7 @@ class MoreInfoClimate extends LitElement {
|
|||||||
.selected=${this._mainControl === "humidity"}
|
.selected=${this._mainControl === "humidity"}
|
||||||
.disabled=${this.stateObj!.state === UNAVAILABLE}
|
.disabled=${this.stateObj!.state === UNAVAILABLE}
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.dialogs.more_info_control.light.color_temp"
|
"ui.dialogs.more_info_control.climate.humidity"
|
||||||
)}
|
)}
|
||||||
.control=${"humidity"}
|
.control=${"humidity"}
|
||||||
@click=${this._setMainControl}
|
@click=${this._setMainControl}
|
||||||
@ -166,10 +166,7 @@ class MoreInfoClimate extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
<ha-more-info-control-select-container>
|
<ha-more-info-control-select-container>
|
||||||
<ha-control-select-menu
|
<ha-control-select-menu
|
||||||
.label=${this.hass.formatEntityAttributeName(
|
.label=${this.hass.localize("ui.card.climate.mode")}
|
||||||
this.stateObj,
|
|
||||||
"hvac_mode"
|
|
||||||
)}
|
|
||||||
.value=${stateObj.state}
|
.value=${stateObj.state}
|
||||||
.disabled=${this.stateObj.state === UNAVAILABLE}
|
.disabled=${this.stateObj.state === UNAVAILABLE}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
|
@ -86,7 +86,7 @@ class MoreInfoFan extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_handleOscillating(ev) {
|
_handleOscillating(ev) {
|
||||||
const newVal = ev.target.value === "on";
|
const newVal = ev.target.value === "true";
|
||||||
|
|
||||||
this.hass.callService("fan", "oscillate", {
|
this.hass.callService("fan", "oscillate", {
|
||||||
entity_id: this.stateObj!.entity_id,
|
entity_id: this.stateObj!.entity_id,
|
||||||
@ -269,7 +269,9 @@ class MoreInfoFan extends LitElement {
|
|||||||
this.stateObj,
|
this.stateObj,
|
||||||
"oscillating"
|
"oscillating"
|
||||||
)}
|
)}
|
||||||
.value=${this.stateObj.attributes.oscillating ? "on" : "off"}
|
.value=${this.stateObj.attributes.oscillating
|
||||||
|
? "true"
|
||||||
|
: "false"}
|
||||||
.disabled=${this.stateObj.state === UNAVAILABLE}
|
.disabled=${this.stateObj.state === UNAVAILABLE}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
naturalMenuWidth
|
naturalMenuWidth
|
||||||
@ -280,19 +282,27 @@ class MoreInfoFan extends LitElement {
|
|||||||
slot="icon"
|
slot="icon"
|
||||||
.path=${haOscillatingOff}
|
.path=${haOscillatingOff}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
<ha-list-item value="on" graphic="icon">
|
<ha-list-item value="true" graphic="icon">
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${haOscillating}
|
.path=${haOscillating}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
${this.hass.localize("state.default.on")}
|
${this.hass.formatEntityAttributeValue(
|
||||||
|
this.stateObj,
|
||||||
|
"oscillating",
|
||||||
|
true
|
||||||
|
)}
|
||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
<ha-list-item value="off" graphic="icon">
|
<ha-list-item value="false" graphic="icon">
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
.path=${haOscillatingOff}
|
.path=${haOscillatingOff}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
${this.hass.localize("state.default.off")}
|
${this.hass.formatEntityAttributeValue(
|
||||||
|
this.stateObj,
|
||||||
|
"oscillating",
|
||||||
|
false
|
||||||
|
)}
|
||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
</ha-control-select-menu>
|
</ha-control-select-menu>
|
||||||
`
|
`
|
||||||
|
@ -73,10 +73,7 @@ class MoreInfoWaterHeater extends LitElement {
|
|||||||
${supportOperationMode && stateObj.attributes.operation_list
|
${supportOperationMode && stateObj.attributes.operation_list
|
||||||
? html`
|
? html`
|
||||||
<ha-control-select-menu
|
<ha-control-select-menu
|
||||||
.label=${this.hass.formatEntityAttributeName(
|
.label=${this.hass.localize("ui.card.water_heater.mode")}
|
||||||
stateObj,
|
|
||||||
"operation"
|
|
||||||
)}
|
|
||||||
.value=${stateObj.state}
|
.value=${stateObj.state}
|
||||||
.disabled=${stateObj.state === UNAVAILABLE}
|
.disabled=${stateObj.state === UNAVAILABLE}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
|
@ -121,10 +121,7 @@ class HuiClimateHvacModeTileFeature
|
|||||||
.value=${this._currentHvacMode}
|
.value=${this._currentHvacMode}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
hide-label
|
hide-label
|
||||||
.ariaLabel=${this.hass.formatEntityAttributeName(
|
.ariaLabel=${this.hass.localize("ui.card.climate.mode")}
|
||||||
this.stateObj,
|
|
||||||
"hvac_mode"
|
|
||||||
)}
|
|
||||||
style=${styleMap({
|
style=${styleMap({
|
||||||
"--control-select-color": color,
|
"--control-select-color": color,
|
||||||
})}
|
})}
|
||||||
|
@ -125,10 +125,7 @@ class HuiWaterHeaterOperationModeTileFeature
|
|||||||
.value=${this._currentOperationMode}
|
.value=${this._currentOperationMode}
|
||||||
@value-changed=${this._valueChanged}
|
@value-changed=${this._valueChanged}
|
||||||
hide-label
|
hide-label
|
||||||
.ariaLabel=${this.hass.formatEntityAttributeName(
|
.ariaLabel=${this.hass.localize("ui.card.water_heater.mode")}
|
||||||
this.stateObj,
|
|
||||||
"hvac_mode"
|
|
||||||
)}
|
|
||||||
style=${styleMap({
|
style=${styleMap({
|
||||||
"--control-select-color": color,
|
"--control-select-color": color,
|
||||||
})}
|
})}
|
||||||
|
@ -107,8 +107,7 @@
|
|||||||
"cooling": "{name} cooling",
|
"cooling": "{name} cooling",
|
||||||
"high": "high",
|
"high": "high",
|
||||||
"low": "low",
|
"low": "low",
|
||||||
"operation": "Operation",
|
"mode": "Mode"
|
||||||
"away_mode": "Away mode"
|
|
||||||
},
|
},
|
||||||
"counter": {
|
"counter": {
|
||||||
"actions": {
|
"actions": {
|
||||||
@ -228,8 +227,8 @@
|
|||||||
"currently": "Currently",
|
"currently": "Currently",
|
||||||
"on_off": "On / off",
|
"on_off": "On / off",
|
||||||
"target_temperature": "Target temperature",
|
"target_temperature": "Target temperature",
|
||||||
"operation": "Operation",
|
"away_mode": "Away mode",
|
||||||
"away_mode": "Away mode"
|
"mode": "Mode"
|
||||||
},
|
},
|
||||||
"weather": {
|
"weather": {
|
||||||
"attributes": {
|
"attributes": {
|
||||||
@ -1021,7 +1020,9 @@
|
|||||||
"climate": {
|
"climate": {
|
||||||
"target_label": "{action} to target",
|
"target_label": "{action} to target",
|
||||||
"target": "Target",
|
"target": "Target",
|
||||||
"humidity_target": "Humidity target"
|
"humidity_target": "Humidity target",
|
||||||
|
"temperature": "Temperature",
|
||||||
|
"humidity": "Humidity"
|
||||||
},
|
},
|
||||||
"humidifier": {
|
"humidifier": {
|
||||||
"target_label": "[%key:ui::dialogs::more_info_control::climate::target_label%]",
|
"target_label": "[%key:ui::dialogs::more_info_control::climate::target_label%]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user