diff --git a/zigpy_xbee/api.py b/zigpy_xbee/api.py index 28ba126..a28ec2a 100644 --- a/zigpy_xbee/api.py +++ b/zigpy_xbee/api.py @@ -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}") fut.set_result(status)