mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 12:56:30 +00:00
Fix named param typo in device_registry example (#284)
Param is `config_entry_id`, not `config_entry` see: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/helpers/device_registry.py#L93
This commit is contained in:
parent
4df88738a2
commit
a0ec1616d1
@ -70,7 +70,7 @@ from homeassistant.helpers import device_registry as dr
|
||||
device_registry = await dr.async_get_registry(hass)
|
||||
|
||||
device_registry.async_get_or_create(
|
||||
config_entry=entry.entry_id,
|
||||
config_entry_id=entry.entry_id,
|
||||
connections={
|
||||
(dr.CONNECTION_NETWORK_MAC, config.mac)
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user