Closed frederikrooms closed 2 years ago
Hey there @briis, @angellusmortis, @bdraco, mind taking a look at this issue as it has been labeled with an integration (unifiprotect
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifiprotect documentation unifiprotect source (message by IssueLinks)
getting almost identical issue as well, still happens on 2022-2-7 and only started after migration from HACS here is some of the log:
ERROR (MainThread) [homeassistant.config_entries] Error unloading entry UDM-Protect for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 466, in async_unload result = await component.async_unload_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 173, in async_unload_entry return await component.async_unload_entry(entry) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!
Please enable debug logging and provide a log of setting HA.
Did you follow the migrations steps listed for migrating from the HACS version? Including deleting the old HACS version of the integration?
@kaaspad I did make some changes, the problem seemed to have disappeared. The only thing is that I don't know for sure what solved the issue:
I did follow the instructions to move the Protect as HACS component to the core integration. It all worked very well, even the Smart sensor was adapted with the new entities. So that could not be the source of the error.
@AngellusMortis yes I did the migrations steps, will enable logging. @frederikrooms I will do all three of your steps and see if helps. Thanks!!
I guess this was not made clear in the migration does, but you must not run the HACS integration on 2022.2.0 or newer. That is likely why you are seeing inconsistent errors as HA is is loading code from both integrations (HACS and core).
thanks that was actually clear. I completely removed hacs integration but was still getting the error.
same issue here
`Logger: homeassistant.config_entries Source: helpers/entity_component.py:172 First occurred: 29 maart 2022 23:32:12 (1070 occurrences) Last logged: 15:32:12
Error unloading entry UDM PRO for media_player Error unloading entry UDM PRO for number Error unloading entry UDM PRO for select Error unloading entry UDM PRO for sensor Error unloading entry UDM PRO for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 474, in async_unload result = await component.async_unload_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 173, in async_unload_entry return await component.async_unload_entry(entry) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!`
+1
I am getting the same issue on HAAS 2022.3.1-8 core component having never installed the HACS version.
Posting "same issue" and "+1" is not productive to the issue. If you are having the same issue and do not have anything else to add please react to the OP with a 👍.
If you actually want to progress the issue, then please provide the debug log of your UniFi Protect integration.
Posting "same issue" and "+1" is not productive to the issue. If you are having the same issue and do not have anything else to add please react to the OP with a 👍.
If you actually want to progress the issue, then please provide the debug log of your UniFi Protect integration.
I did enable debug logging for Unifiprotect. But the HASS becomes unresponsive and creates huge log files that fills my entire disk space in just a couple of hours. Is there another way to provide you feedback? Can I set another level of debug logging that keeps my HASS running in a normal way?
Hi Together,
@frederikrooms the problem is that the default setting is to set everything to "debug" and therefore your HASS becomes unresponsive. you have to set the default for example to "info". (see https://www.home-assistant.io/integrations/logger/)
@AngellusMortis I also got the Error that the "Config entry was never loaded!`" and checked the Debug Logs. This is what i found:
This issue is the same as https://github.com/home-assistant/core/issues/73013, please continue there
The problem
After I uninstalled Unifi Protect custom component in HACS, and installed the integration using the Core integrations. I received messages in the log saying there a couple of entries not loaded. I can't figure out what these mean, or how I can solve them, but it's clear that they must be the result of the switch from HACS to the core integration.
It could be coincidence, but I have connection troubles between the Unifi Host and Home assistant. After each restart of the HASS Core I can see an hourly check and fail for a couple of seconds. After reconnecting all my devices are reactivated in my HASS. As a result of the new connection I get these messages with more or less the same timestamp. It creates a lot of traffic in my logging since I have 11 Unifi devices and a smart sensor.
Logger: homeassistant.config_entries Source: helpers/entity_component.py:172 First occurred: 8 februari 2022 20:16:09 (900 occurrences) Last logged: 13:17:22
Error unloading entry UDM-Protect for media_player Error unloading entry UDM-Protect for number Error unloading entry UDM-Protect for select Error unloading entry UDM-Protect for sensor Error unloading entry UDM-Protect for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 466, in async_unload result = await component.async_unload_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/binary_sensor/init.py", line 173, in async_unload_entry return await component.async_unload_entry(entry) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 172, in async_unload_entry raise ValueError("Config entry was never loaded!") ValueError: Config entry was never loaded!
What version of Home Assistant Core has the issue?
2022-2-3
What was the last working version of Home Assistant Core?
2022-2-0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Unifi Protect
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response