mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-03 01:14:30 +02:00
Added connections to device registry, fixes #114
This commit is contained in:
parent
59ce0618b0
commit
84e8046943
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ async def async_setup_entry(hass, config_entry):
|
|||
device_registry = await hass.helpers.device_registry.async_get_registry()
|
||||
device_registry.async_get_or_create(
|
||||
config_entry_id=config_entry.entry_id,
|
||||
connections={(DOMAIN, controller.data["routerboard"]["serial-number"])},
|
||||
manufacturer=controller.data["resource"]["platform"],
|
||||
model=controller.data["routerboard"]["model"],
|
||||
name=controller.data["routerboard"]["model"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue