j-a-n / lovelace-wallpanel

🖼️ Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
451 stars 40 forks source link

Respect `image_order = random` for immich #276

Closed kriths closed 3 weeks ago

kriths commented 3 weeks ago

Love the new immich integration! I expected the images to be randomized when the config image_order is set to random, so I added that check when the images have been loaded.

I'd argue for changing to === and dropping the unused params (a, b) but I copied that from the other image shuffle above to keep the code style.

j-a-n commented 3 weeks ago

Hello @kriths , I'm glad that you like the immich integration. I simply forgot the part about the radomization. Thank you for your contribution!