diff --git a/src/cards/title-card/title-card.ts b/src/cards/title-card/title-card.ts index f242e3103..39bfbf329 100644 --- a/src/cards/title-card/title-card.ts +++ b/src/cards/title-card/title-card.ts @@ -1,5 +1,5 @@ import { HomeAssistant, LovelaceCard, LovelaceCardEditor } from "custom-card-helpers"; -import { UnsubscribeFunc } from "home-assistant-js-websocket"; +import { Connection, UnsubscribeFunc } from "home-assistant-js-websocket"; import { css, CSSResultGroup, html, LitElement, PropertyValues, TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import "../../shared/shape-icon"; diff --git a/src/translations/it.json b/src/translations/it.json index f362c6062..32c771827 100644 --- a/src/translations/it.json +++ b/src/translations/it.json @@ -87,6 +87,30 @@ }, "vacuum": { "commands": "Comandi" + }, + "media-player": { + "use_media_info": "Mostra le Informazioni Sorgente", + "use_media_artwork": "Usa la copertina della Sorgente", + "media_controls": "Controlli Media", + "media_controls_list": { + "on_off": "Accendi/Spegni", + "shuffle": "Riproduzione Casuale", + "previous": "Traccia Precedente", + "play_pause_stop": "Play/Pausa/Stop", + "next": "Traccia Successiva", + "repeat": "Loop" + }, + "volume_controls": "Controlli del Volume", + "volume_controls_list": { + "volume_buttons": "Bottoni del Volume", + "volume_set": "Livello del Volume", + "volume_mute": "Silenzia" + } + }, + "lock": { + "lock": "Blocca", + "unlock": "Sblocca", + "open": "Aperto" } }, "chip": { diff --git a/src/utils/icons/cover-icon.ts b/src/utils/icons/cover-icon.ts index f08fa3ce3..db3ff716f 100644 --- a/src/utils/icons/cover-icon.ts +++ b/src/utils/icons/cover-icon.ts @@ -91,6 +91,7 @@ export const coverIcon = (state?: string, entity?: HassEntity): string => { export const computeOpenIcon = (stateObj: HassEntity): string => { switch (stateObj.attributes.device_class) { case "awning": + case "curtain": case "door": case "gate": return "mdi:arrow-expand-horizontal"; @@ -102,6 +103,7 @@ export const computeOpenIcon = (stateObj: HassEntity): string => { export const computeCloseIcon = (stateObj: HassEntity): string => { switch (stateObj.attributes.device_class) { case "awning": + case "curtain": case "door": case "gate": return "mdi:arrow-collapse-horizontal";