Villhellm / lovelace-animated-background

Animated backgrounds for lovelace
195 stars 61 forks source link

White background (instead of the theme one) when no animated_backround is configured #16

Closed SeLLeRoNe closed 4 years ago

SeLLeRoNe commented 4 years ago

Your Animated Background configuration

I only have this in ui-lovelace.yaml , not in the additional dashboards (management and test ones)

animated_background:
  default_url: /local/animated_backgrounds/sunny.html
  included_users:
    - Andrea Iannucci
  included_devices:
    - windows
  entity: "weather.dark_sky"
  state_url:
    'sunny': /local/animated_backgrounds/sunny.html
    'partlycloudy': /local/animated_backgrounds/cloudy.html
    'cloudy': /local/animated_backgrounds/cloudy.html
    'mostlycloudy': /local/animated_backgrounds/mostlycloudy.html
    'clear-night': /local/animated_backgrounds/night.html
    'fog': /local/animated_backgrounds/fog.html

Version of Home Assistant "Latest" is not a version number. Please provide the actual version number. 1.109.2

Describe the bug A clear and concise description of what the bug is. All the dashboards are loading a white background instead of the theme background presumably because the animated background is not configured for those dashboards.

Browser console log Post anything related to animated-background.js Not apparent/clear related error in the dashboard

To Reproduce Steps to reproduce the behavior:

  1. Create a new dashboard
  2. Don't configure any animated_background
  3. View the dashboard

Expected behavior A clear and concise description of what you expected to happen. Use the default theme background if no configuration is present.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

SeLLeRoNe commented 4 years ago

It might actually be the same issue of #17

Villhellm commented 4 years ago

Trying to add logic for multiple dashboard functionality is what screwed everything up, but I think I've mostly figured out the proper logic now. Give the latest update a shot.

SeLLeRoNe commented 4 years ago

Worked perfectly! :)