Closed goldbe4804 closed 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!
(message by CodeOwnersMention)
wiz documentation wiz source (message by IssueLinks)
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)
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 !!!!!!!
Can confirm this as well - unplugging the light then restarting HA made it work. Weird.
Uninstall the old custom component
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)
Remove the integration, delete the custom component rm -rf /config/custom_components/wiz_light
, restart HA, setup the integration again using the core integration.
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