File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -591,12 +591,13 @@ async def read_attribute(
591
591
if TYPE_CHECKING :
592
592
assert self .server .loop
593
593
assert self .chip_controller
594
- loop = self .server .loop
595
- future = loop .create_future ()
594
+
595
+ future = self .server .loop .create_future ()
596
+ device = await self ._resolve_node (node_id )
596
597
Attribute .Read (
597
598
future = future ,
598
- eventLoop = loop ,
599
- device = device ,
599
+ eventLoop = self . server . loop ,
600
+ device = device . deviceProxy ,
600
601
devCtrl = self .chip_controller ,
601
602
attributes = [
602
603
Attribute .AttributePath (
@@ -607,7 +608,6 @@ async def read_attribute(
607
608
],
608
609
fabricFiltered = fabric_filtered ,
609
610
).raise_on_error ()
610
-
611
611
result : Attribute .AsyncReadTransaction .ReadResponse = await future
612
612
read_atributes = parse_attributes_from_read_result (result .tlvAttributes )
613
613
# update cached info in node attributes
You can’t perform that action at this time.
0 commit comments