Skip to content

Commit

Permalink
Don't remove relays when there are route errors (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Feb 15, 2024
1 parent 2fe6e86 commit be242b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion bellows/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,4 +1051,3 @@ def handle_route_record(

def handle_route_error(self, status: t.EmberStatus, nwk: t.EmberNodeId) -> None:
LOGGER.debug("Processing route error: status=%s, nwk=%s", status, nwk)
self.handle_relays(nwk=nwk, relays=None)
2 changes: 1 addition & 1 deletion tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ def test_handle_route_error(app):
app.ezsp_callback_handler(
"incomingRouteErrorHandler", [sentinel.status, sentinel.nwk]
)
app.handle_relays.assert_called_once_with(nwk=sentinel.nwk, relays=None)
app.handle_relays.assert_not_called()


def test_handle_id_conflict(app, ieee):
Expand Down

0 comments on commit be242b3

Please sign in to comment.