HomeAssistant_Blueprints_Update icon indicating copy to clipboard operation
HomeAssistant_Blueprints_Update copied to clipboard

Script is replacing > symbol and escaping double quotes

Open ReplicaObscura opened this issue 2 years ago • 2 comments

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.

ReplicaObscura avatar Feb 11 '23 17:02 ReplicaObscura

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.

koter84 avatar Feb 13 '23 07:02 koter84

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

schumi2004 avatar Nov 23 '23 07:11 schumi2004