j-a-n / lovelace-wallpanel

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

Saving Dashboard adds ">-" after image_url: #239

Closed Dion-HA closed 2 days ago

Dion-HA commented 1 week ago

Hi,

It looks like there is an issue when saving the the Dashboard edits after adding the Extended eample code, the following line:

image_url: 'http://picsum.photos/${width}/${height}?random=${timestamp}'

is saved as:

image_url: >- http://picsum.photos/${width}/${height}?random=${timestamp}

This issue also happends on the following line copied from the Extended eample:

text-shadow: '-2px -2px 0 #03a9f4, 2px -2px 0 #03a9f4, -2px 2px 0 #03a9f4, 2px 2px 0 #03a9f4'

this line is saved as:

**text-shadow: >- -2px -2px 0 #03a9f4, 2px -2px 0 #03a9f4, -2px 2px 0 #03a9f4, 2px 2px 0

03a9f4**

Hope you can help resolve this issue :)

Cheers!

j-a-n commented 1 week ago

Hi, Home Assistant breaks long lines in the yaml configuration into several lines. Folded blocks are used for this. See https://redocly.com/docs/yaml/blocks-and-flows. This should not actually cause any problems.

Dion-HA commented 6 days ago

Thanks Jan, good to know. It was not updating changes I was making, then realized I had to reload YAML configuration files for changes to take effect, e.g. reloading " Groups, Group Entities, and notify Services" via the Developer tools did the trick.

I'm now stuck on trying to remove the weather.home error, can you please let me know how to disable the weather.home entity?

e.g.

https://community.home-assistant.io/t/wall-panel-removing-weather-error/728571

Thank you,

Dion

j-a-n commented 6 days ago

You can remove all cards like that:

wallpanel:
  cards: []

https://github.com/j-a-n/lovelace-wallpanel?tab=readme-ov-file#badges-and-cards