From 2606d55895a0e32569d7f403ba5f5c54cc23f835 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Sun, 12 Dec 2021 13:25:05 +0100 Subject: [PATCH] Add tooltips and aria-labels to climate modes (#10875) --- src/panels/lovelace/cards/hui-thermostat-card.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index 7ace186bc7..564008d158 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -19,7 +19,7 @@ import { svg, TemplateResult, } from "lit"; -import { customElement, property, state, query } from "lit/decorators"; +import { customElement, property, query, state } from "lit/decorators"; import { classMap } from "lit/directives/class-map"; import { UNIT_F } from "../../../common/const"; import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element"; @@ -427,6 +427,7 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard { @click=${this._handleAction} tabindex="0" .path=${modeIcons[mode]} + .label=${this.hass!.localize(`component.climate.state._.${mode}`)} > `;