Add method to switch forks without deleting configuration #5394
Unanswered
AllardKatan
asked this question in
Marketplace
Replies: 2 comments
|
I've been just hit by this. The latest release breaks one of the integrations I use and although there is a fork there is now no easy way to switch to that - I really don't want to delete my devices and entities. Resorted to manually update the files in the |
0 replies
|
Hi, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With the switch from HACS to Marketplace, the possibility to remove a repository from the marketplace without removing configuration was removed. This also makes switching between two forks of the same integration with the same name more cumbersome.
Switching forks is sometimes necessary when developers stop developing and others take over their work.
In HACS, this would be done by uninstalling the repo associated with the old version of the integration, keeping the configuration, and then adding the new version from a different repository. In Marketplace, that no longer works. When uninstalling a repository, a dialog comes up that allows you to either cancel or remove the configuration before uninstalling.
I would propose add a menu item to the three dot menu of installed integrations, which is named "switch forks" or "switch community provider" or "change repository" or something like that. This menu item, when clicked, should
1 Give a warning
2 Prompt the user for the github URL of the new fork
3 Check that fork has the same name as the old one
4 If the check works out, remove the old repository from the installed ones, and add the new.
5 Prompt the user to restart (if necessary)
Another solution would be to add a button to the 'uninstall' dialog that allows uninstalling without removing configuration. The user would then have to add the new repository in a separate action. I think this is an inferior solution, but it also solves the problem.
All reactions