Skip to content

Commit

Permalink
Tiny Bugfix + Updated Italian translation (#372)
Browse files Browse the repository at this point in the history
* fix #371 : connection import

* fix #369 Curtain card button icons

* Update Italian translation

* removed unused import

* removed useless logging
  • Loading branch information
alessandroias committed Apr 21, 2022
1 parent 28ca656 commit 750148b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/title-card/title-card.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
24 changes: 24 additions & 0 deletions src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/icons/cover-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit 750148b

Please sign in to comment.