You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I believe removing my Samsung TV from my home asisstant (as I had to reconfigure it) I dind't find any issues. As far as I know my TV got removed.
After removing my TP-Link M9 from UPnP (because I had to add my X60 instead as router) I dind't experience any issues (as far as I know).
But then I found the following log entries:
I believe this first one got triggered by removing my TV because of the MAC in the bottom, that's in the range of Samsung Electronics Co.,Ltd
Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:448
First occurred: 7:28:15 PM (1 occurrences)
Last logged: 7:28:15 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 95, in delete
result = await hass.config_entries.async_remove(entry_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1843, in async_remove
dev_reg.async_clear_config_entry(entry_id)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1241, in async_clear_config_entry
self.async_update_device(device.id, remove_config_entry_id=config_entry_id)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 977, in async_update_device
self.async_remove_device(device_id)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1141, in async_remove_device
device = self.devices.pop(device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen _collections_abc>", line 951, in pop
File "/usr/src/homeassistant/homeassistant/helpers/registry.py", line 62, in __delitem__
self._unindex_entry(key)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 613, in _unindex_entry
super()._unindex_entry(key, replacement_entry)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 552, in _unindex_entry
del self._connections[connection]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: ('mac', '24:fc:e5:xx:xx:xx')
Then I got the following errors a couple of times (added and removed my router a couple of times to see when it triggers):
Logger: homeassistant.helpers.device_registry
Source: helpers/debounce.py:134
First occurred: 7:28:16 PM (5 occurrences)
Last logged: 7:42:49 PM
Unexpected exception from <function async_setup_cleanup.<locals>._async_cleanup at 0x7fa1aed3a0>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 134, in _handle_timer_finish
if task := self.hass.async_run_hass_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 937, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1437, in _async_cleanup
async_cleanup(hass, dev_reg, ent_reg)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1400, in async_cleanup
dev_reg.async_update_device(
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 977, in async_update_device
self.async_remove_device(device_id)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1141, in async_remove_device
device = self.devices.pop(device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen _collections_abc>", line 951, in pop
File "/usr/src/homeassistant/homeassistant/helpers/registry.py", line 62, in __delitem__
self._unindex_entry(key)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 607, in _unindex_entry
self._unindex_entry_value(key, area_id, self._area_id_index)
File "/usr/src/homeassistant/homeassistant/helpers/registry.py", line 56, in _unindex_entry_value
del entries[key]
~~~~~~~^^^^^
KeyError: '142a2f7e801102f975b2618a4776b1ba'
In order to test what's happening I tried to remove one of my Sonos devices, but then I got a completely different error. I'm not sure if it has anything to do with it, or if I'm actually just not allowed to remove the device from HA. Anyhow, I'll just post it as I'm not sure if it is of any help.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:307
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:41:11 PM (1 occurrences)
Last logged: 7:41:11 PM
[547633017856] Error handling message: Failed to remove device entry, rejected by integration (home_assistant_error) USERNAME from 192.168.100.119 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36)
A little side information. I have been experiencing some issues after updating to version 2024.10.1, I think I got something messed up and had to reflash my SD card. I then rolled back to a full backup which I created right after I setup Nginx and finally got my outside connection to work properly. Therefore, I'm not sure if anything got damaged or if this is an actual bug in the HA core.
Ps. When Googling the issue I found these issues. It seems related. #128264 and #126961
What version of Home Assistant Core has the issue?
core-2024.10.2
What was the last working version of Home Assistant Core?
I seem to have the same issue, started occurring on 2024.12.2 and the mac address is for two hue bulbs that are currently configured and working (direct hue zigbee integration mot through hub)
2024-12-18 05:58:17.812 ERROR (MainThread) [homeassistant.helpers.device_registry] Unexpected exception from <function async_setup_cleanup.<locals>._async_cleanup at 0x7f9ac8daa480> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 134, in _handle_timer_finish if task := self.hass.async_run_hass_job( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ self._job, background=self._background ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ): ^ File "/usr/src/homeassistant/homeassistant/core.py", line 949, in async_run_hass_job hassjob.target(*args) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1415, in _async_cleanup async_cleanup(hass, dev_reg, ent_reg) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1384, in async_cleanup dev_reg.async_purge_expired_orphaned_devices() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1254, in async_purge_expired_orphaned_devices del self.deleted_devices[deleted_device.id] ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/registry.py", line 62, in __delitem__ self._unindex_entry(key) ~~~~~~~~~~~~~~~~~~~^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 558, in _unindex_entry del self._connections[connection] ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ KeyError: ('mac', '00:17:88:01:xx:xx:xx:xx')
The problem
After I believe removing my Samsung TV from my home asisstant (as I had to reconfigure it) I dind't find any issues. As far as I know my TV got removed.
After removing my TP-Link M9 from UPnP (because I had to add my X60 instead as router) I dind't experience any issues (as far as I know).
But then I found the following log entries:
I believe this first one got triggered by removing my TV because of the MAC in the bottom, that's in the range of
Samsung Electronics Co.,Ltd
Then I got the following errors a couple of times (added and removed my router a couple of times to see when it triggers):
In order to test what's happening I tried to remove one of my Sonos devices, but then I got a completely different error. I'm not sure if it has anything to do with it, or if I'm actually just not allowed to remove the device from HA. Anyhow, I'll just post it as I'm not sure if it is of any help.
A little side information. I have been experiencing some issues after updating to version 2024.10.1, I think I got something messed up and had to reflash my SD card. I then rolled back to a full backup which I created right after I setup Nginx and finally got my outside connection to work properly. Therefore, I'm not sure if anything got damaged or if this is an actual bug in the HA core.
Ps. When Googling the issue I found these issues. It seems related. #128264 and #126961
What version of Home Assistant Core has the issue?
core-2024.10.2
What was the last working version of Home Assistant Core?
Not sure, I think 2024-9.x or 2024-10.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Devices, HTTP, UPnP
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The text was updated successfully, but these errors were encountered: