Split devices of nodes with multiple instances (#24032)
* Split devices of nodes with multiple instances * Note entities to register with device registry * Use EntityPlatform
This commit is contained in:
1 parent
449a7d3fd5
commit
b1dcfaf6b3
2 files changed
+38
-12
No files matched your search
@@ -124,7 +124,7 @@ class ZWaveNodeEntity(ZWaveBaseEntity):
|
||||
@property
|
||||
def device_info(self):
|
||||
"""Return device information."""
|
||||
return {
|
||||
info = {
|
||||
'identifiers': {
|
||||
(DOMAIN, self.node_id)
|
||||
},
|
||||
@@ -132,6 +132,9 @@ class ZWaveNodeEntity(ZWaveBaseEntity):
|
||||
'model': self.node.product_name,
|
||||
'name': node_name(self.node)
|
||||
}
|
||||
if self.node_id > 1:
|
||||
info['via_hub'] = (DOMAIN, 1)
|
||||
return info
|
||||
|
||||
def network_node_changed(self, node=None, value=None, args=None):
|
||||
"""Handle a changed node on the network."""
|
||||
|
||||
Reference in new issue
Block a user