koter84 / HomeAssistant_Blueprints_Update

This is a script to automatically check for updates for your HA Blueprints
GNU General Public License v3.0
27 stars 7 forks source link

Script is replacing > symbol and escaping double quotes #5

Open bmcclure opened 1 year ago

bmcclure commented 1 year ago

I ran this to update all of my existing blueprints, and while most of them worked, several of them were broken due to two main issues:

  1. On multiline strings that start with >, the > character is replaced with >
  2. On values that contain double quotes, they are all escaped with a backslash which sometimes changes their meaning or makes values that should be quoted act as if they aren't quoted.

Is there a reason it does this, or is this unintended behavior?

If this matters, I did call the script to update all blueprints from the automation provided in the docs, rather than by manually using the command line.

koter84 commented 1 year ago

it should not do that, i think it has to do with where the blueprints are downloaded from..

could you post the source_url for one or more blueprints that do this, then i can look what happens with those.

schumi2004 commented 10 months ago

Noticed the same thing. I have a few BP's that have this but the ones i can remember are:

https://community.home-assistant.io/t/actionable-notifications-for-android/256773.json https://community.home-assistant.io/t/send-camera-snapshot-notification-on-motion/254565.json