mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-23 17:26:29 +00:00
Clarify how devices are matched in device registry (#709)
The exact device registry behaviour is somewhat unclear. Clarify how devices are matched exactly.
This commit is contained in:
parent
95991ebdf8
commit
d3ac04fb1c
@ -44,7 +44,7 @@ Although not currently available, we could consider offering an option to users
|
||||
Entity device info is only read if the entity is loaded via a [config entry](config_entries_index.md).
|
||||
:::
|
||||
|
||||
Each entity is able to define a device via the `device_info` property. This property is read when an entity is added to Home Assistant via a config entry. A device will be matched up with an existing device via supplied identifiers and connections, like serial numbers or MAC addresses.
|
||||
Each entity is able to define a device via the `device_info` property. This property is read when an entity is added to Home Assistant via a config entry. A device will be matched up with an existing device via supplied identifiers or connections, like serial numbers or MAC addresses. If identifiers and connections are provided, the device registry will first try to match by identifiers. Each identifier and each connection is matched individually (e.g. only one connection needs to match to be considered the same device).
|
||||
|
||||
```python
|
||||
# Inside a platform
|
||||
|
Loading…
x
Reference in New Issue
Block a user