Skip to content

Commit

Permalink
Includes simple "currently playing" (#112)
Browse files Browse the repository at this point in the history
* Includes simple "currently playing"
  • Loading branch information
FL550 authored Oct 10, 2020
1 parent 419bc59 commit fdac850
Show file tree
Hide file tree
Showing 5 changed files with 977 additions and 948 deletions.
11 changes: 11 additions & 0 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ export class SpotifyCardEditor extends LitElement implements LovelaceCardEditor
return this.config?.filter_devices?.toString() ?? '';
case ConfigEntry.Hide_Top_Header:
return this.config?.hide_top_header ?? false;
case ConfigEntry.Hide_Currently_Playing:
return this.config?.hide_currently_playing ?? false;

default:
break;
Expand Down Expand Up @@ -300,6 +302,15 @@ export class SpotifyCardEditor extends LitElement implements LovelaceCardEditor
></ha-switch>
<label for=${'hide_top_header'}>${localize('settings.hide_top_header')}</label>
</div>
<div>
<ha-switch
.checked=${this.getValue(ConfigEntry.Hide_Currently_Playing)}
.configValue=${'hide_currently_playing'}
@change=${this.valueChanged}
.id=${'hide_currently_playing'}
></ha-switch>
<label for=${'hide_currently_playing'}>${localize('settings.hide_currently_playing')}</label>
</div>
<div>
<paper-dropdown-menu
label=${localize('settings.display_style')}
Expand Down
3 changes: 2 additions & 1 deletion src/localize/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"spotify_entity": "Spotify media player entity",
"default_device": "Default device name",
"filter_devices": "Verstecke Geräte (siehe Dokumentation unter 'Advanced usage')",
"hide_top_header": "Verstecke Kopfzeile"
"hide_top_header": "Verstecke Kopfzeile",
"hide_currently_playing": "Verstecke die Anzeige des aktuellen Liedes"
}
}
3 changes: 2 additions & 1 deletion src/localize/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"spotify_entity": "Spotify media player entity",
"default_device": "Default device name",
"filter_devices": "Hide devices (see documentation under 'Advanced usage')",
"hide_top_header": "Hide header"
"hide_top_header": "Hide header",
"hide_currently_playing": "Hide currently playing"
}
}
Loading

0 comments on commit fdac850

Please sign in to comment.