Skip to content

Commit

Permalink
Small fixes for tile features (#17983)
Browse files Browse the repository at this point in the history
* Add missing translations

* Remove unused import
  • Loading branch information
piitaya authored Sep 21, 2023
1 parent 9217d5b commit 78ddec2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
"service": {
"run": "Run"
},
"select": {
"option": "Option"
},
"update": {
"installing": "Installing",
"installing_with_progress": "Installing ({progress}%)",
Expand Down Expand Up @@ -5047,6 +5050,9 @@
},
"preset_modes": "Preset modes"
},
"select-options": {
"label": "Select options"
},
"target-temperature": {
"label": "Target temperature"
},
Expand Down

0 comments on commit 78ddec2

Please sign in to comment.