Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Blueprint Import links not being created #473

Open
dinki opened this issue Jul 23, 2024 · 7 comments
Open

New Blueprint Import links not being created #473

dinki opened this issue Jul 23, 2024 · 7 comments

Comments

@dinki
Copy link

dinki commented Jul 23, 2024

I am trying to create a link to this blueprint:

https://raw.githubusercontent.com/dinki/View-Assist/main/View%20Assist%20custom%20sentences/Ask%20AI/blueprint-askai.yaml

Typically the form will complain about the '%20' so I change these to spaces and it works fine. This is not happening. In troubleshooting, I tried formatting using a known working blueprint link created using my.home-assistant.io weeks ago and adjusted it by adding the new path and keeping with the same formatting as the working link. That did not work either.

I then tried to use the known working blueprint import and it appears to not be working now and gives an error when clicking the link:

image

It seems all of the links I've created using the form (https://my.home-assistant.io/create-link/) no longer work though no changes have been made to the repo structure or filenames that would explain this. Here is an example of a previously working link that now gives the error:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Any help with this is most appreciated. Thanks.

@SirGoodenough
Copy link

SirGoodenough commented Jul 23, 2024

I have tested this as well with my ow github blueprint links. Both the YAML creation and the Markdown creation from the link tool seem broken. URL works OK.
Discord Thread:
https://discord.com/channels/330944238910963714/786973377209696266/1265290854042701875
image

So here is not working and lower one created previously working...
image

When I paste that into here with code formatting it turns into:

[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.]([https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FSirGoodenough%2FHA_Blueprints%2Fblob%2Fmaster%2FScripts%2Ftts_All_Message_Script_Blueprint.yaml)](https://my.home-assistant.io/badges/blueprint_import.svg)%5D(https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FSirGoodenough%2FHA_Blueprints%2Fblob%2Fmaster%2FScripts%2Ftts_All_Message_Script_Blueprint.yaml))

[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FSirGoodenough%2FHA_Blueprints%2Fblob%2Fmaster%2FScripts%2Ftts_All_Message_Script_Blueprint.yaml)

So something is happening there appears to be an extra square brace in there making it dizzy.

@dinki
Copy link
Author

dinki commented Jul 23, 2024

As a follow up to @SirGoodenough observations, here is an example of a link I have that was previously working but now no longer works:

[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FList+Management%2Fblueprint-listmanagement.yaml)

The formatting is the same as his working example but it is now failing as are all of my blueprint links. It may be related to the spaces in the path as I think that may be the only obvious difference.

@dinki
Copy link
Author

dinki commented Jul 24, 2024

Here is a list of previously working blueprints that are now giving errors:

https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+control+automations%2Fblueprint-devicecontrol.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FBroadcast%2Fblueprint-broadcast.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FHows+the+weather%2Fblueprint-howstheweather.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FList+Management%2Fblueprint-listmanagement.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FShow+Webpage%2Fblueprint-showwebpage.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FSpell+a+Word%2Fblueprint-spellaword.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FTell+Me+a+Joke%2Fblueprint-tellmeajoke.yaml
https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Fmain%2FView+Assist+custom+sentences%2FThank+You%2Fblueprint-thankyou.yaml

My project relies heavily on blueprint imports as a means to add functionality. Any advice on how to proceed is most appreciated.

@frenck
Copy link
Member

frenck commented Jul 24, 2024

Is this bound to a specific browser? And anything in the browser console?

@frenck
Copy link
Member

frenck commented Jul 24, 2024

Caused by braintree/sanitize-url#77
Related issue: braintree/sanitize-url#78

@dinki
Copy link
Author

dinki commented Jul 24, 2024

Is this bound to a specific browser? And anything in the browser console?

I checked console in Chrome and don't see any errors.

Looks like you beat me to the response. Thanks for your quick response on this.

@dinki
Copy link
Author

dinki commented Jul 24, 2024

Working again for old links and can create new links. Thanks for reverting.

@dinki dinki closed this as completed Jul 24, 2024
@dinki dinki reopened this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants