Small fixes for tile features (#17983)

* Add missing translations

* Remove unused import
This commit is contained in:
Paul Bottein 2023-09-21 21:33:32 +02:00 committed by GitHub
parent 9217d5bf40
commit 78ddec2c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View File

@ -4,11 +4,8 @@ import { customElement, property, state } from "lit/decorators";
import { styleMap } from "lit/directives/style-map";
import { computeDomain } from "../../../common/entity/compute_domain";
import { stateColorCss } from "../../../common/entity/state_color";
import "../../../components/ha-control-button";
import "../../../components/ha-control-button-group";
import "../../../components/ha-control-select";
import type { ControlSelectOption } from "../../../components/ha-control-select";
import "../../../components/ha-control-slider";
import {
ClimateEntity,
compareClimateHvacModes,
@ -141,10 +138,6 @@ class HuiClimateHvacModeTileFeature
--control-select-border-radius: 10px;
--control-select-button-border-radius: 10px;
}
ha-control-button-group {
margin: 0 12px 12px 12px;
--control-button-group-spacing: 12px;
}
.container {
padding: 0 12px 12px 12px;
width: auto;

View File

@ -110,7 +110,7 @@ class HuiSelectOptionsTileFeature
<ha-control-select-menu
show-arrow
hide-label
.label=${"Option"}
.label=${this.hass.localize("ui.card.select.option")}
.value=${stateObj.state}
.disabled=${this.stateObj.state === UNAVAILABLE}
fixedMenuPosition

View File

@ -194,6 +194,9 @@
"service": {
"run": "Run"
},
"select": {
"option": "Option"
},
"update": {
"installing": "Installing",
"installing_with_progress": "Installing ({progress}%)",
@ -5047,6 +5050,9 @@
},
"preset_modes": "Preset modes"
},
"select-options": {
"label": "Select options"
},
"target-temperature": {
"label": "Target temperature"
},