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

Error when using custom component wiz_light after 2023.5 #92431

Closed goldbe4804 closed 1 year ago

goldbe4804 commented 1 year ago

The problem

try to add a wiz bulb and get right after a pick wiz "Config flow could not be loaded: {"message":"Invalid handler specified"}"

What version of Home Assistant Core has the issue?

2023.5

What was the last working version of Home Assistant Core?

1st time using

What type of installation are you running?

Home Assistant Core

Integration causing the issue

wiz

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

thanks for any help jeff

home-assistant[bot] commented 1 year 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!

Code owner commands Code owners of `wiz` 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 wiz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


wiz documentation wiz source (message by IssueLinks)

gschmidl commented 1 year ago

I can confirm this issue since 2023.5.0, the logs say:

Logger: homeassistant.config_entries
Source: config_entries.py:863
First occurred: 11:55:47 (2 occurrences)
Last logged: 11:56:58

Error occurred loading flow for integration wiz: cannot import name 'PIR_SOURCE' from 'pywizlight.bulb' (/usr/local/lib/python3.10/site-packages/pywizlight/bulb.py)
goldbe4804 commented 1 year ago

as of today..... i rebooted a FEW times, same error them i unpluged for a few sec. then booted now the intergation seems to be working !!!!!!!

gschmidl commented 1 year ago

Can confirm this as well - unplugging the light then restarting HA made it work. Weird.

bdraco commented 1 year ago

Uninstall the old custom component

Nislund commented 1 year ago

I can confirm this issue since 2023.5.0 😬

Logger: homeassistant.config_entries Source: custom_components/wiz_light/init.py:37 Integration: WiZ Light First occurred: 17.52.24 (8 occurrences) Last logged: 17.52.25

Error setting up entry WiZ Bulb 4 Lo for wiz_light Error setting up entry WiZ Plug for wiz_light Error setting up entry WiZ Bulb 2 So for wiz_light Error setting up entry WiZ Bulb 5 Di for wiz_light Error setting up entry WiZ Bulb 6 SBL for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

2023-05-06 17:52:24.444 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Bulb 7 LB for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2023-05-06 17:52:24.445 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Bulb 3 LS for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2023-05-06 17:52:24.446 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Bulb 4 Lo for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2023-05-06 17:52:24.447 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Plug for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2023-05-06 17:52:24.447 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Bulb 2 So for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms' 2023-05-06 17:52:24.448 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WiZ Bulb 5 Di for wiz_light Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/wiz_light/init.py", line 37, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS)

bdraco commented 1 year ago

Remove the integration, delete the custom component rm -rf /config/custom_components/wiz_light, restart HA, setup the integration again using the core integration.