Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Shulyaka committed Oct 1, 2023
1 parent 729e10a commit 7ccd157
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zigpy_xbee/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,9 @@ def _handle_tx_status(self, frame_id, nwk, tries, tx_status, dsc_status):
def _handle_registration_status(self, frame_id, status):
(fut,) = self._awaiting.pop(frame_id)
if status:
fut.set_exception(
RuntimeError("Registration Status: {}".format(status.name))
)
fut.set_exception(RuntimeError(f"Registration Status: {status.name}"))
return
LOGGER.debug("Registration Status: {}".format(status.name))
LOGGER.debug(f"Registration Status: {status.name}")

Check warning on line 577 in zigpy_xbee/api.py

View check run for this annotation

Codecov / codecov/patch

zigpy_xbee/api.py#L573-L577

Added lines #L573 - L577 were not covered by tests

fut.set_result(status)

Check warning on line 579 in zigpy_xbee/api.py

View check run for this annotation

Codecov / codecov/patch

zigpy_xbee/api.py#L579

Added line #L579 was not covered by tests

Expand Down

0 comments on commit 7ccd157

Please sign in to comment.