### The problem
When commissioning an Eve Energy EU plug via the Matter multi…-admin thing ("Turn On Pairing Mode" in HomeKit and pasting the code in "Commission Device" in the Matter beta integration), the device appears without any entity in it.
Note that I couldn't even add the device before `2023.1.0b0`.
### What version of Home Assistant Core has the issue?
2023.1.0b1
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Matter
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/matter
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
With 2023.1.0b1:
```txt
2022-12-29 21:46:42.753 ERROR (MainThread) [homeassistant.components.matter] Unexpected exception: coroutine raised StopIteration
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 341, in start_listening
self._handle_incoming_message(msg)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 410, in _handle_incoming_message
self._handle_event_message(msg)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 425, in _handle_event_message
self._signal_event(EventType.NODE_ADDED, node)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 456, in _signal_event
callback(event, data)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 56, in node_added_callback
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 77, in _setup_node
self._setup_node_device(node_device, bridge_unique_id)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 132, in _setup_node_device
entity_description.entity_cls(
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 67, in __init__
f"{node.unique_id}-"
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 215, in unique_id
self.get_attribute(
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 152, in get_attribute
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 131, in _client_listen
await matter_client.start_listening(init_ready)
RuntimeError: coroutine raised StopIteration
2022-12-29 21:46:42.817 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for matter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 48, in setup_nodes
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 77, in _setup_node
self._setup_node_device(node_device, bridge_unique_id)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 132, in _setup_node_device
entity_description.entity_cls(
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 67, in __init__
f"{node.unique_id}-"
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 215, in unique_id
self.get_attribute(
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 152, in get_attribute
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 109, in async_setup_entry
await matter.setup_nodes()
RuntimeError: coroutine raised StopIteration
```
Before, with 2023.1.0b0, I also had:
```
2022-12-29 10:17:38.351 ERROR (MainThread) [homeassistant.components.matter] Unexpected exception: coroutine raised StopIteration
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 341, in start_listening
self._handle_incoming_message(msg)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 410, in _handle_incoming_message
self._handle_event_message(msg)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 425, in _handle_event_message
self._signal_event(EventType.NODE_ADDED, node)
File "/usr/local/lib/python3.10/site-packages/matter_server/client/client.py", line 456, in _signal_event
callback(event, data)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 56, in node_added_callback
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 77, in _setup_node
self._setup_node_device(node_device, bridge_unique_id)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 132, in _setup_node_device
entity_description.entity_cls(
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 67, in __init__
f"{node.unique_id}-"
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 215, in unique_id
self.get_attribute(
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 152, in get_attribute
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 131, in _client_listen
await matter_client.start_listening(init_ready)
RuntimeError: coroutine raised StopIteration
2022-12-29 10:17:38.402 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for matter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 48, in setup_nodes
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 77, in _setup_node
self._setup_node_device(node_device, bridge_unique_id)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 132, in _setup_node_device
entity_description.entity_cls(
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 67, in __init__
f"{node.unique_id}-"
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 215, in unique_id
self.get_attribute(
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 152, in get_attribute
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 109, in async_setup_entry
await matter.setup_nodes()
RuntimeError: coroutine raised StopIteration
2022-12-29 10:18:45.381 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 169, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-12-29 10:18:45.382 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 618, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-12-29 10:18:45.383 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 565, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-12-29 10:18:45.383 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 83, in async_setup_entry
return await component.async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2022-12-29 10:18:45.384 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Matter for matter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 48, in setup_nodes
self._setup_node(node)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 77, in _setup_node
self._setup_node_device(node_device, bridge_unique_id)
File "/usr/src/homeassistant/homeassistant/components/matter/adapter.py", line 132, in _setup_node_device
entity_description.entity_cls(
File "/usr/src/homeassistant/homeassistant/components/matter/entity.py", line 67, in __init__
f"{node.unique_id}-"
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 215, in unique_id
self.get_attribute(
File "/usr/local/lib/python3.10/site-packages/matter_server/common/models/node.py", line 152, in get_attribute
return next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 109, in async_setup_entry
await matter.setup_nodes()
RuntimeError: coroutine raised StopIteration
```
### Additional information
I have a Eve Energy EU plug, with the beta Matter firmware, added to my Apple Home and Google Home via the Matter multi-admin thing. I tried before to add it to HA, which didn't work, but now that it does on the beta, I'm not getting any entities on the commissioned device.