diff --git a/bellows/zigbee/application.py b/bellows/zigbee/application.py index 1bd0271c..f64254ac 100644 --- a/bellows/zigbee/application.py +++ b/bellows/zigbee/application.py @@ -1042,8 +1042,8 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None: ] ): await self._ezsp.xncp_set_manual_source_route( - nwk=packet.dst.address, - relays=packet.source_route, + destination=packet.dst.address, + route=packet.source_route, ) else: await self._ezsp.set_source_route( diff --git a/tests/test_application.py b/tests/test_application.py index 018dd632..9170747b 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -899,7 +899,7 @@ async def test_send_packet_unicast_manual_source_route(make_app, packet): app._ezsp._xncp_features |= FirmwareFeatures.MANUAL_SOURCE_ROUTE app._ezsp.xncp_set_manual_source_route = AsyncMock( - return_value=None, spec=app._ezsp._protocol.set_source_route + return_value=None, spec=app._ezsp.xncp_set_manual_source_route ) packet.source_route = [0x0001, 0x0002] @@ -913,8 +913,8 @@ async def test_send_packet_unicast_manual_source_route(make_app, packet): ) app._ezsp.xncp_set_manual_source_route.assert_called_once_with( - nwk=packet.dst.address, - relays=[0x0001, 0x0002], + destination=packet.dst.address, + route=[0x0001, 0x0002], )