Make Magic Areas fully uninstall-able by the integrations UI #191
Replies: 10 comments
-
I’m trying to remove the magic areas. Uninstalled from hacs. Deleted all the areas entities. Deleted all the magic areas in integrations and the magic area integration disapeared but comes back always after reboot.Removed magic areas from yaml. It still shows up under integrations every reboot and I get this error on start up The following integrations and platforms could not be set up: magic_areas and this error in logs: Logger: homeassistant.setup Setup failed for magic_areas: Integration not found. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
Thanks for submitting this report. It should be straightforward, what you did should have removed it. Can you check in the integrations page if it still shows up? I need to do some testing on this |
Beta Was this translation helpful? Give feedback.
-
It comes back every time under integrations with all the areas and no devices? I’ve triple checked all my config files and have removed everything I could find associated with magic areas. The first time I removed it I had to delete the individual areas under integrations then the integration went away but immediately showed back up under integrations after reboot. Now there’s no option to remove the integration because each area has no devices. I’ve removed the hacs integration? It’s not hurting anything it just drives me nuts that I can’t figure out how to get rid of it. I’m rather knowledgeable about home assistant and have been using it for over 3 years but I’ve never ran into something like this I couldn’t delete, remove, or uninstall? The first time I tried to get rid of it I deleted the hacs integration first, then I went to integrations and deleted individual areas, the integration disappeared, rebooted and it came back so I checked entities and saw the areas so I removed those?
Thanks
Jeff
…Sent from my iPhone
On May 7, 2021, at 4:56 PM, Jan Seidl ***@***.***> wrote:
Thanks for submitting this report. It should be straightforward, what you did should have removed it.
Can you check in the integrations page if it still shows up? I need to do some testing on this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
Hi Jeff, I understand your frustration. This is my first integration so I still have some very sharp edges to file. I'm not sure what might be causing this. Areas are automatically recreated even if you delete it because it pulls from Home Assistant's area registry but deleting all the Magic Areas entries on the Integrations page, then removing the integration from Probably I missed some of the hooks, will need to investigate a bit more to solve this one. |
Beta Was this translation helpful? Give feedback.
-
Did you ever find a solution for removing it? All the areas still show up under the main integration page. When you click on an area it just says not loaded and the 3 dots that would allow you to delete it are missing? |
Beta Was this translation helpful? Give feedback.
-
@jscherry, I agree with you - it should be easier to remove, but at first I got stuck like you. Here is what worked for me:
After all of these steps, Magic Area was completely removed. To @jseidl I would add, If the integration is manageable form the UI, it should probably be possible to add and completely removed from the UI. |
Beta Was this translation helpful? Give feedback.
-
I agree with you and apologize for the hassle. There are some technical reasons why I can't make it work fully through the UI. As MagicAreas scans the Area Registry and creates the area entries at runtime, it doesn't work through the UI flow, only to edit the autocreated entries. I'm quite new to making components and also been quite busy at work so that's why its taking a long time but I definitely have this as a priority on the to-do list |
Beta Was this translation helpful? Give feedback.
-
Hey @jseidl, no need to apologize, you're already doing something others don't AND you are sharing it with the world. Keep it up! and thanks for making this. |
Beta Was this translation helpful? Give feedback.
-
Documentation for Uninstalling added to the wiki. Given the nature of how MA works (mentioned in my last comment), I don't think this will ever be a fixable thing, but I'll leave it open for tracking |
Beta Was this translation helpful? Give feedback.
-
This is coming up next release! |
Beta Was this translation helpful? Give feedback.
-
How do I remove magic areas
Beta Was this translation helpful? Give feedback.
All reactions