Fix Matter unique_id generation (#86046)
* bae entity unique id on Operational Instance Name standard * Update homeassistant/components/matter/entity.py Co-authored-by: Stefan Agner <stefan@agner.ch> * also adjust unique id for devices * final adjustment * remove assert on server_info * move device info to init * fabric_id_hex * use DeviceInfo instead of dict * fix test Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
3cd6bd87a7
commit
072517f17e
4 changed files with 81 additions and 39 deletions
|
@ -27,8 +27,9 @@ async def test_device_registry_single_node_device(
|
|||
)
|
||||
|
||||
dev_reg = dr.async_get(hass)
|
||||
|
||||
entry = dev_reg.async_get_device({(DOMAIN, "mock-onoff-light")})
|
||||
entry = dev_reg.async_get_device(
|
||||
{(DOMAIN, "00000000000004D2-0000000000000001-MatterNodeDevice")}
|
||||
)
|
||||
assert entry is not None
|
||||
|
||||
assert entry.name == "Mock OnOff Light"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue