Skip to content

Commit 90eef58

Browse files
committed
Add docstrings
1 parent 80f446c commit 90eef58

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/test_application.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ async def test_energy_scan(app):
686686

687687

688688
def test_neighbors_updated(app, device):
689+
"""Test LQI from neighbour scan."""
689690
router = device(ieee=b"\x01\x02\x03\x04\x05\x06\x07\x08")
690691
router.radio_details = mock.MagicMock()
691692
end_device = device(ieee=b"\x08\x07\x06\x05\x04\x03\x02\x01")
@@ -746,6 +747,7 @@ def test_neighbors_updated(app, device):
746747

747748

748749
def test_routes_updated_schedule(app):
750+
"""Test scheduling the sync routes_updated function."""
749751
app.create_task = mock.MagicMock()
750752
app._routes_updated = mock.MagicMock()
751753

@@ -758,6 +760,7 @@ def test_routes_updated_schedule(app):
758760

759761

760762
async def test_routes_updated(app, device):
763+
"""Test RSSI on routes scan update."""
761764
rssi = 0x50
762765
app._api._at_command = mock.AsyncMock(return_value=rssi)
763766

zigpy_xbee/zigbee/application.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ def routes_updated(
413413
async def _routes_updated(
414414
self, ieee: zigpy.types.EUI64, routes: list[zdo_t.Route]
415415
) -> None:
416+
"""Get RSSI for adjacent routers on Route update from Mgmt_Rtg_req."""
416417
for route in routes:
417418
if (
418419
route.DstNWK == self.state.node_info.nwk

0 commit comments

Comments
 (0)