@@ -574,6 +574,15 @@ export interface CardConfig extends LovelaceCardConfig {
574
574
*/
575
575
userPresetBrowserSubTitle ?: string ;
576
576
577
+ /**
578
+ * File path to a collection of user-defined preset items that can be displayed in
579
+ * various media browser displays. This allows the user to define their own custom
580
+ * presets for Spotify favorites.
581
+ *
582
+ * See `userPresets` configuration item for file content format.
583
+ */
584
+ userPresetsFile ?: string ;
585
+
577
586
/**
578
587
* Number of items to display in a single row of the User Preset media browser section form.
579
588
* Use a value of 1 to display the items as a vertical list.
@@ -593,6 +602,27 @@ export interface CardConfig extends LovelaceCardConfig {
593
602
*/
594
603
userPresetBrowserItemsHideSubTitle ?: boolean ;
595
604
605
+ /**
606
+ * Collection of user-defined preset items that can be displayed in various media browser
607
+ * displays. This allows the user to define their own custom presets along with device presets.
608
+ *
609
+ * This configuration data must be configured manually in the card configuration.
610
+ * Some things to keep in mind when adding entries:
611
+ * - attribute names are are CaSe-SeNsItIvE.
612
+ *
613
+ * See wiki dicumentation for more examples.
614
+ *
615
+ * Example:
616
+ * userPresets:
617
+ * - name: "Spotify Playlist Daily Mix 1"
618
+ * subtitle: "Various Artists"
619
+ * image_url: "https://dailymix-images.scdn.co/v2/img/ab6761610000e5ebcd3f796bd7ea49ed7615a550/1/en/default"
620
+ * uri: "spotify:playlist:37i9dQZF1E39vTG3GurFPW"
621
+ * type: "playlist"
622
+ * - name: ...
623
+ */
624
+ userPresets ?: Array < IUserPreset > ;
625
+
596
626
/**
597
627
* Collection of custom imageUrl's that can be displayed in various media browser
598
628
* displays. This allows the user to override the image that is supplied by the
@@ -619,34 +649,5 @@ export interface CardConfig extends LovelaceCardConfig {
619
649
*/
620
650
customImageUrls ?: CustomImageUrls ;
621
651
622
- /**
623
- * Collection of user-defined preset items that can be displayed in various media browser
624
- * displays. This allows the user to define their own custom presets along with device presets.
625
- *
626
- * This configuration data must be configured manually in the card configuration.
627
- * Some things to keep in mind when adding entries:
628
- * - attribute names are are CaSe-SeNsItIvE.
629
- *
630
- * See wiki dicumentation for more examples.
631
- *
632
- * Example:
633
- * userPresets:
634
- * - name: "Spotify Playlist Daily Mix 1"
635
- * subtitle: "Various Artists"
636
- * image_url: "https://dailymix-images.scdn.co/v2/img/ab6761610000e5ebcd3f796bd7ea49ed7615a550/1/en/default"
637
- * uri: "spotify:playlist:37i9dQZF1E39vTG3GurFPW"
638
- * type: "playlist"
639
- * - name: ...
640
- */
641
- userPresets ?: Array < IUserPreset > ;
642
-
643
- /**
644
- * File path to a collection of user-defined preset items that can be displayed in various media browser
645
- * displays. This allows the user to define their own custom presets along with device presets.
646
- *
647
- * See `userPresets` configuration item for file content format.
648
- */
649
- userPresetsFile ?: string ;
650
-
651
652
//imageUrlsReplaceHttpWithHttps?: boolean;
652
653
}
0 commit comments