core: Pi-Hole Integration not working anymore after Home Assistant update 2023.4.0
The problem
Pi-Hole Device Integration does not load anymore after update. It worked OK on 2023.3.x
Error Log:
2023-04-07 12:20:21.351 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Pi-Hole for pi_hole File “/usr/src/homeassistant/homeassistant/components/pi_hole/init.py”, line 97, in async_setup_entry ValueError: Unique id ‘8c23d9ddab05c313e302a2c1c7b4112f/core_update_available’ is already in use by ‘update.pi_hole_core_update_available_2’ 2023-04-07 12:22:37.272 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Pi-Hole for pi_hole File “/usr/src/homeassistant/homeassistant/components/pi_hole/init.py”, line 97, in async_setup_entry ValueError: Unique id ‘8c23d9ddab05c313e302a2c1c7b4112f/core_update_available’ is already in use by ‘update.pi_hole_core_update_available_2’
What version of Home Assistant Core has the issue?
2023.4.1
What was the last working version of Home Assistant Core?
2023.3.latest
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Pi-Hole
Link to integration documentation on our website
https://www.home-assistant.io/integrations/pi_hole/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.config_entries
Source: helpers/entity_registry.py:832
First occurred: 12:20:21 PM (3 occurrences)
Last logged: 12:31:41 PM
Error setting up entry Pi-Hole for pi_hole
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/pi_hole/__init__.py", line 97, in async_setup_entry
await er.async_migrate_entries(hass, entry.entry_id, update_unique_id)
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1213, in async_migrate_entries
ent_reg.async_update_entity(entry.entity_id, **updates)
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 886, in async_update_entity
return self._async_update_entity(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 832, in _async_update_entity
raise ValueError(
ValueError: Unique id '8c23d9ddab05c313e302a2c1c7b4112f/core_update_available' is already in use by 'update.pi_hole_core_update_available_2'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 19
- Comments: 21 (2 by maintainers)
I discovered that the Integration recreated all the associated entities after the update. I ended up with 32 instead of 16 entities with entity_2 naming for the duplicated entities. This caused the integration to not start. After deleting the entire integration and adding it again from the Devices menu, it started working again.
https://github.com/home-assistant/core/issues/90984#issuecomment-1500831447