mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Small fixes for tile features (#17983)
* Add missing translations * Remove unused import
This commit is contained in:
parent
9217d5bf40
commit
78ddec2c8c
@ -4,11 +4,8 @@ import { customElement, property, state } from "lit/decorators";
|
|||||||
import { styleMap } from "lit/directives/style-map";
|
import { styleMap } from "lit/directives/style-map";
|
||||||
import { computeDomain } from "../../../common/entity/compute_domain";
|
import { computeDomain } from "../../../common/entity/compute_domain";
|
||||||
import { stateColorCss } from "../../../common/entity/state_color";
|
import { stateColorCss } from "../../../common/entity/state_color";
|
||||||
import "../../../components/ha-control-button";
|
|
||||||
import "../../../components/ha-control-button-group";
|
|
||||||
import "../../../components/ha-control-select";
|
import "../../../components/ha-control-select";
|
||||||
import type { ControlSelectOption } from "../../../components/ha-control-select";
|
import type { ControlSelectOption } from "../../../components/ha-control-select";
|
||||||
import "../../../components/ha-control-slider";
|
|
||||||
import {
|
import {
|
||||||
ClimateEntity,
|
ClimateEntity,
|
||||||
compareClimateHvacModes,
|
compareClimateHvacModes,
|
||||||
@ -141,10 +138,6 @@ class HuiClimateHvacModeTileFeature
|
|||||||
--control-select-border-radius: 10px;
|
--control-select-border-radius: 10px;
|
||||||
--control-select-button-border-radius: 10px;
|
--control-select-button-border-radius: 10px;
|
||||||
}
|
}
|
||||||
ha-control-button-group {
|
|
||||||
margin: 0 12px 12px 12px;
|
|
||||||
--control-button-group-spacing: 12px;
|
|
||||||
}
|
|
||||||
.container {
|
.container {
|
||||||
padding: 0 12px 12px 12px;
|
padding: 0 12px 12px 12px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -110,7 +110,7 @@ class HuiSelectOptionsTileFeature
|
|||||||
<ha-control-select-menu
|
<ha-control-select-menu
|
||||||
show-arrow
|
show-arrow
|
||||||
hide-label
|
hide-label
|
||||||
.label=${"Option"}
|
.label=${this.hass.localize("ui.card.select.option")}
|
||||||
.value=${stateObj.state}
|
.value=${stateObj.state}
|
||||||
.disabled=${this.stateObj.state === UNAVAILABLE}
|
.disabled=${this.stateObj.state === UNAVAILABLE}
|
||||||
fixedMenuPosition
|
fixedMenuPosition
|
||||||
|
@ -194,6 +194,9 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"run": "Run"
|
"run": "Run"
|
||||||
},
|
},
|
||||||
|
"select": {
|
||||||
|
"option": "Option"
|
||||||
|
},
|
||||||
"update": {
|
"update": {
|
||||||
"installing": "Installing",
|
"installing": "Installing",
|
||||||
"installing_with_progress": "Installing ({progress}%)",
|
"installing_with_progress": "Installing ({progress}%)",
|
||||||
@ -5047,6 +5050,9 @@
|
|||||||
},
|
},
|
||||||
"preset_modes": "Preset modes"
|
"preset_modes": "Preset modes"
|
||||||
},
|
},
|
||||||
|
"select-options": {
|
||||||
|
"label": "Select options"
|
||||||
|
},
|
||||||
"target-temperature": {
|
"target-temperature": {
|
||||||
"label": "Target temperature"
|
"label": "Target temperature"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user