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
72.65k stars 30.41k forks source link

Can't remove Wiz Light Integration (HACS version) #69313

Closed 1activegeek closed 2 years ago

1activegeek commented 2 years ago

The problem

I'm attempting to migrate to the new integration for Wiz Lights using the official supported integration. I was previously using the HACS version that was done through the UI and did not leverage the YAML. I'm not able to get the old Wiz Light integration to disappear even after removing the custom component folder. The integration still shows in the console, and error messages continue to enumerate illustrating that it can't load the 'wiz_light' integration.

What version of Home Assistant Core has the issue?

core-2022.3.8

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

wiz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wiz/

Diagnostics information

No diagnostics as the integration is the leftover unofficial HACS integration.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Seen when leaving the old component in:

2022-04-04 22:10:28 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration wiz: cannot import name 'PIR_SOURCE' from 'pywizlight.bulb' (/usr/local/lib/python3.9/site-packages/pywizlight/bulb.py)

Seen when removing the custom component folder for wiz_light:

2022-04-04 22:16:28 ERROR (MainThread) [homeassistant.setup] Setup failed for wiz_light: Integration not found.

Additional information

I was expecting to use HACS to remove the component first, but that is unavailable as it is no longer in the HACS store. As seen below, when removing the custom component, I still have the WiZ Light til on my integrations page, but it just no longer shows the HACS integration icon like the Unifi Protect integration next to it does. But the entities and Devices are still there and listed on the tile.

image

My only thought is that I need to fully delete these items like removing from the YAML did for others, then it will remove the tile when it is no longer there? I'm just not certain and currently the integration still works, I just don't want to lose a functioning config and have it even more screwed up by deleting these manually.

image
probot-home-assistant[bot] commented 2 years ago

wiz documentation wiz source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @sbidy, mind taking a look at this issue as it has been labeled with an integration (wiz) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

frenck commented 2 years ago

My only thought is that I need to fully delete these items like removing from the YAML did for others, then it will remove the tile when it is no longer there?

Correct.

I'm just not certain and currently the integration still works, I just don't want to lose a functioning config and have it even more screwed up by deleting these manually.

Existing integration would no longer work, as its not the same integration. You will loose functioning configuration as its not the same configuration or integration.

There is no migration path. If you want to move to the core maintained version, you need to remove the custom version and install the core version. You will lose data/configuration in the process.

This is not a bug.

../Frenck

1activegeek commented 2 years ago

Ok, sorry for the extra issue resolution work. It wasn't quite clear, but hopefully this being documented will help some others like me who may run into similar issue in removing the legacy HACS version. Appreciate the help and the awesome work!!