File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
"""Matter Client implementation."""
2
+
2
3
from __future__ import annotations
3
4
4
5
import asyncio
@@ -345,6 +346,10 @@ async def node_diagnostics(self, node_id: int) -> NodeDiagnostics:
345
346
node_type = NodeType .BRIDGE
346
347
# get active fabrics for this node
347
348
active_fabrics = await self .get_matter_fabrics (node_id )
349
+ # get active fabric index
350
+ fabric_index = node .get_attribute_value (
351
+ 0 , None , Clusters .OperationalCredentials .Attributes .CurrentFabricIndex
352
+ )
348
353
return NodeDiagnostics (
349
354
node_id = node_id ,
350
355
network_type = network_type ,
@@ -354,6 +359,7 @@ async def node_diagnostics(self, node_id: int) -> NodeDiagnostics:
354
359
mac_address = mac_address ,
355
360
available = node .available ,
356
361
active_fabrics = active_fabrics ,
362
+ active_fabric_index = fabric_index ,
357
363
)
358
364
359
365
async def send_device_command (
Original file line number Diff line number Diff line change 1
1
"""Matter node."""
2
+
2
3
from __future__ import annotations
3
4
4
5
from dataclasses import dataclass
@@ -402,3 +403,4 @@ class NodeDiagnostics:
402
403
mac_address : str | None
403
404
available : bool
404
405
active_fabrics : list [MatterFabricData ]
406
+ active_fabric_index : int
You can’t perform that action at this time.
0 commit comments