Skip to content

Commit 4ee82da

Browse files
authored
Fix xncp_set_manual_source_route keyword arguments (#715)
1 parent 4b97a6d commit 4ee82da

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

bellows/zigbee/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
10421042
]
10431043
):
10441044
await self._ezsp.xncp_set_manual_source_route(
1045-
nwk=packet.dst.address,
1046-
relays=packet.source_route,
1045+
destination=packet.dst.address,
1046+
route=packet.source_route,
10471047
)
10481048
else:
10491049
await self._ezsp.set_source_route(

tests/test_application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ async def test_send_packet_unicast_manual_source_route(make_app, packet):
899899
app._ezsp._xncp_features |= FirmwareFeatures.MANUAL_SOURCE_ROUTE
900900

901901
app._ezsp.xncp_set_manual_source_route = AsyncMock(
902-
return_value=None, spec=app._ezsp._protocol.set_source_route
902+
return_value=None, spec=app._ezsp.xncp_set_manual_source_route
903903
)
904904

905905
packet.source_route = [0x0001, 0x0002]
@@ -913,8 +913,8 @@ async def test_send_packet_unicast_manual_source_route(make_app, packet):
913913
)
914914

915915
app._ezsp.xncp_set_manual_source_route.assert_called_once_with(
916-
nwk=packet.dst.address,
917-
relays=[0x0001, 0x0002],
916+
destination=packet.dst.address,
917+
route=[0x0001, 0x0002],
918918
)
919919

920920

0 commit comments

Comments
 (0)