home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.09k stars 29.75k forks source link

Re-importing blueprint doesn't update `source_url` attribute #123025

Open SVNKoch opened 1 month ago

SVNKoch commented 1 month ago

The problem

I have a private github gist with a blueprint. I want to move it to a public repo to better share it. Since I'm already using the blueprint many times and don't want to reconfigure them all, I thought I just update the source_url in the gist and re-import the blueprint. However the source_url is not updated and it still pulls from the old gist blueprint.

to reproduce:

  1. create a blueprint yaml on github gist
  2. import that blueprint
  3. upload the same (* update source_url to point to repo url) blueprint yaml to a github repo
  4. test that the new repo blueprint is importable (but cancel the import)
  5. update source_url in gist blueprint to point to the github repo blueprint
  6. re-import blueprint
  7. share that blueprint => still points to gist adress

Here you can see I first updated the source_url and then later on changed the description to check that the update worked grafik

Well, as we can see, the description is updated, but the url is still pointing to gist: grafik grafik

What version of Home Assistant Core has the issue?

core-2024.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (blueprint) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `blueprint` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign blueprint` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


blueprint documentation blueprint source (message by IssueLinks)