1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

deCONZ - Support device registry (#16115)

Add support for device registry in deCONZ component
This commit is contained in:
Robert Svensson
2018-08-24 19:37:22 +02:00
committed by GitHub
parent e8775ba2b4
commit e91a1529e4
12 changed files with 162 additions and 36 deletions

View File

@@ -275,8 +275,11 @@ class EntityPlatform:
device = entity.device
if device is not None:
device = device_registry.async_get_or_create(
device['identifiers'], device['manufacturer'],
device['model'], device['connection'],
connection=device['connection'],
identifiers=device['identifiers'],
manufacturer=device['manufacturer'],
model=device['model'],
name=device.get('name'),
sw_version=device.get('sw_version'))
device_id = device.id
else: